|
emerge编译了好几次kpdf都不能正常显示中文
今天我发现kpdf调用的是xpdf的配置(事先我没有安装xpdf,故此无法显示中文)
我现在拷贝了一个xpdf-chinese-simplified(新的portage里面已经没这个了..单独emerge xpdf我这里不能显示中文..rp差..)
自己配置了一下~/.xpdfrc
displayFontT1 Times-Roman /usr/share/fonts/default/ghostscript/n021003l.pfb
displayFontT1 Times-Italic /usr/share/fonts/default/ghostscript/n021023l.pfb
displayFontT1 Times-Bold /usr/share/fonts/default/ghostscript/n021004l.pfb
displayFontT1 Times-BoldItalic /usr/share/fonts/default/ghostscript/n021024l.pfb
displayFontT1 Helvetica /usr/share/fonts/default/ghostscript/n019003l.pfb
displayFontT1 Helvetica-Oblique /usr/share/fonts/default/ghostscript/n019023l.pfb
displayFontT1 Helvetica-Bold /usr/share/fonts/default/ghostscript/n019004l.pfb
displayFontT1 Helvetica-BoldOblique /usr/share/fonts/default/ghostscript/n019024l.pfb
displayFontT1 Courier /usr/share/fonts/default/ghostscript/n022003l.pfb
displayFontT1 Courier-Oblique /usr/share/fonts/default/ghostscript/n022023l.pfb
displayFontT1 Courier-Bold /usr/share/fonts/default/ghostscript/n022004l.pfb
displayFontT1 Courier-BoldOblique /usr/share/fonts/default/ghostscript/n022024l.pfb
displayFontT1 Symbol /usr/share/fonts/default/ghostscript/s050000l.pfb
displayFontT1 ZapfDingbats /usr/share/fonts/default/ghostscript/d050000l.pfb
textEncoding GBK
displayCIDFontTT Adobe-GB1 "/usr/share/fonts/ttf/zh_CN/simhei.ttf"
fontDir /home/ftp/fonts
#----- begin Chinese Simplified support package (2002-jun-17)
cidToUnicode Adobe-GB1 /usr/local/share/xpdf/chinese-simplified/Adobe-GB1.cidToUnicode
unicodeMap ISO-2022-CN /usr/local/share/xpdf/chinese-simplified/ISO-2022-CN.unicodeMap
unicodeMap EUC-CN /usr/local/share/xpdf/chinese-simplified/EUC-CN.unicodeMap
unicodeMap GBK /usr/local/share/xpdf/chinese-simplified/GBK.unicodeMap
cMapDir Adobe-GB1 /usr/local/share/xpdf/chinese-simplified/CMap
toUnicodeDir /usr/local/share/xpdf/chinese-simplified/CMap
#----- end Chinese Simplified support package
这样已经可以正常显示正文的内容了
但是还是不能显示标签的中文..我猜是不是也需要~/.Xdefaults和~/.Xresources(到底是哪一个?好像各种说法都有)
并且执行了xrdb -merge ~/.Xresources(这句的用处也不知道...)
我现在加了
Xpdf*fontList:-*-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1;-misc-simsun-medium-r-normal--12-*-*-*-*-*-gbk-0:
可是还是不能显示标签中文(空白)
请问日月兄您是怎么解决的?谢谢(我用emerge的和手动添加并按照您说明的修改自己编译的都是同样的问题..所以我猜是不是没有配置好?) |
|