acura(acura@bbs.smth.org) provided a patch which fixed the CJK problem of xpdf 3.0. The original patch can be downloaded from http://61.153.200.30/lucida/xpdf-final.diff.gz The attachments are the modified ebuild and the patch. After emerge it, you should take the following actions to make it work. 1. add the following sentence to the ~/.Xdefaults xpdf*.fontList: -*-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1;hanzigbk12st: Replace hanzigbk12st with corresponding local font. Then use `` xrdb -merge ~/.Xdefaults '' to merge it. 2. Add the following sentence to ~/.xpdfrc or /etc/xpdfrc textEncoding GBK Also you should replace GBK with your locale. 3. Set suitable TTF font in ~/.xpdfrc or /etc/xpdfrc. Such as displayCIDFontTT Adobe-GB1 /usr/share/fonts/ttf/zh_CN/gbsn00lp.ttf
Created attachment 25932 [details] modified ebuild
Created attachment 25933 [details, diff] CJK patch
does this patch replace all the xpdf-lang ebuids?
No, these ebuils are still needed. Sorry for ignoring them;-)
sorry for taking so long, what does this patch do then exactly?
xpdf 3.0 supports only CID or OTF fonts, but CJK CID/OTF free fonts aren't available atm. The patch enables TrueType fonts support. xpdf upstream applied the patch to the CVS tree a while ago, so it'll be included in the next release of xpdf. (we need the patch until then)
ok, applied that patch :)
This patch causes segfaults on certain pdf files, see bug #67799, maybe there is a newer version available?
i had to cut down the patch to the part the other distributions are using as well to avoid segfaults, see bug #67799
xpdfrc.1 says displayCIDFontTT Adobe-Japan1 "/usr/share/fonts/kochi-substitute/kochi-gothic-subst.ttf" displayCIDFontTT Adobe-CNS1 "/usr/share/fonts/ttf/zh_TW/bkai00mp.ttf" displayCIDFontTT Adobe-GB1 "/usr/share/fonts/ttf/zh_CN/gkai00mp.ttf" displayCIDFontTT Adobe-Korea1 "/usr/share/fonts/ttf/korean/baekmuk/batang.ttf" displayCIDFontTT Unidocs-Korea1 "/usr/share/fonts/ttf/korean/baekmuk/batang.ttf" but it is true only if >=media-fonts/kochi-substitute-20030809-r2, <=media-fonts/arphicfonts-0.1-r1 and <=media-fonts/baekmuk-fonts-2.1-r1. I wanted to modify xpdfrc.1 to make xpdf depend on >=media-fonts/arphicfonts-0.1-r2 and >=media-fonts/baekmuk-fonts-2.2 but ia64 blocks it. I'll open a bug to ask ia64 team to stablise them.
i think this one is fixed then.