updated on Thu Jan 12 16:09:17 UTC 2012
[aur-mirror.git] / poppler-zh / fc-lang-zh-pdf.patch
blob0b13b6729169a4c5aa0f13da5edf3098245e5a86
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);
7 +
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");
13 if (deleteFamily)
14 delete[] family;