1 --- poppler-0.16.7.orig/poppler/GlobalParams.cc 2011-09-04 16:52:11.865943584 +0800
2 +++ poppler-0.16.7/poppler/GlobalParams.cc 2011-09-04 17:11:59.576175873 +0800
3 @@ -1158,6 +1158,11 @@ static FcPattern *buildFcPattern(GfxFont
4 if (weight != -1) FcPatternAddInteger(p, FC_WEIGHT, weight);
5 if (width != -1) FcPatternAddInteger(p, FC_WIDTH, width);
6 if (spacing != -1) FcPatternAddInteger(p, FC_SPACING, spacing);
8 + if (strcmp(lang, "zh-cn") == 0)
9 + FcPatternAddString(p, FC_LANG, (const FcChar8*)"zh-cn-pdf");
10 + else if (strcmp(lang, "zh-tw") == 0)
11 + FcPatternAddString(p, FC_LANG, (const FcChar8*)"zh-tw-pdf");