equal
deleted
inserted
replaced
|
1 Patch taken from the Desktop consolidation. |
|
2 See BugDB CR#15724715 |
|
3 SUNBT7059720 evince cannot display the pdf file without embedded font if sun-ja- |
|
4 for more details. |
|
5 |
|
6 This patch will be sent upstream if the problem still exists in the latest |
|
7 version of poppler. |
|
8 |
|
9 diff -urN poppler-0.14.4/poppler/GlobalParams.cc ../SUNWgnome-pdf-viewer-2.30.3.hacked/poppler-0.14.4/poppler/GlobalParams.cc |
|
10 --- poppler-0.14.4/poppler/GlobalParams.cc 2010-09-12 17:16:26.000000000 +0000 |
|
11 +++ ../SUNWgnome-pdf-viewer-2.30.3.hacked/poppler-0.14.4/poppler/GlobalParams.cc 2011-07-14 13:35:34.448661213 +0000 |
|
12 @@ -1202,6 +1202,18 @@ |
|
13 ext = strrchr((char*)s,'.'); |
|
14 if (!ext) |
|
15 continue; |
|
16 +#ifdef __sun |
|
17 + // system/font/sun-ja-bitmap-unicode has messed up the choice of fonts |
|
18 + // to render Japanese PDF doc, so replace it with a TrueType font. |
|
19 + if (strstr ((char *)s, "sun-ja") && !strncasecmp(ext,".pcf",4)) |
|
20 + { |
|
21 + dfp = new DisplayFontParam(fontName->copy(), displayFontTT); |
|
22 + dfp->tt.fileName = new GooString("/usr/share/fonts/TrueType/ipafont/ipagp.ttf"); |
|
23 + FcPatternGetInteger(set->fonts[i], FC_INDEX, 0, &(dfp->tt.faceIndex)); |
|
24 + font->dfp = dfp; |
|
25 + break; |
|
26 + } |
|
27 +#endif |
|
28 if (!strncasecmp(ext,".ttf",4) || !strncasecmp(ext, ".ttc", 4)) |
|
29 { |
|
30 dfp = new DisplayFontParam(fontName->copy(), displayFontTT); |