[poppler] problem displaying pdf contains Chinese character
Albert Astals Cid
aacid at kde.org
Mon Apr 6 11:52:53 PDT 2009
A Dilluns, 6 d'abril de 2009, James Cloos va escriure:
> >>>>> "Yuanle" == Yuanle Song <sylecn at gmail.com> writes:
> >> :
> >> :; fc-list 宋体 family familylang file
> >> :; fc-list 黑体 family familylang file
> >> :; fc-list 仿宋_GB2312 family familylang file
> >> :; fc-list 楷体_GB2312 family familylang file
> Yuanle> As I said I already have them, according to fc-list.
> I was hoping to see the full family and familylang output, especially
> for the latter two.
> In any case, I hit upon soemthing poppler can do to circumvent this
> issue. If poppler sets the lang parameter when searching for a font
> the resulting font set is more likely to have glyphs which will work.
> Eg, in this case poppler should ask for the equivilent of:
> :; fc-match NAME:lang=zh-cn
> or at least for the equivilent of:
> :; fc-match NAME:lang=zh
We already [try to] do that in poppler, see buildFcPattern in GlobalParams.cc
but probably we could try to improve it.
More information about the poppler