LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
123
返回列表 发新帖
楼主: 小锁

gentoo下xpdf中文解决方法(包括标签的中文)

[复制链接]
发表于 2004-5-28 17:26:50 | 显示全部楼层
我的情况好像和他们的不太一样...
  1. Warning: Missing charsets in String to FontSet conversion
  2. Warning: Cannot convert string "-*-times-medium-r-normal--16-*-*-*-*-*-iso8859-1" to type FontStruct
  3. Error: Illegal entry in bfchar block in ToUnicode CMap
  4. Error: Illegal entry in bfchar block in ToUnicode CMap
  5. Error: Illegal entry in bfchar block in ToUnicode CMap
  6. Error: Illegal entry in bfchar block in ToUnicode CMap
  7. Error: Illegal entry in bfchar block in ToUnicode CMap
  8. Error: Illegal entry in bfchar block in ToUnicode CMap
  9. Error: Illegal entry in bfchar block in ToUnicode CMap
  10. Error: Illegal entry in bfchar block in ToUnicode CMap
  11. Error: Illegal entry in bfchar block in ToUnicode CMap
  12. Error: Illegal entry in bfchar block in ToUnicode CMap
  13. Error: Couldn't create a font for 'SimSun'
  14. Error: Couldn't create a font for 'SimSun'
  15. Error: Couldn't create a font for 'SimSun'
  16. Error: Couldn't create a font for 'STFangsong'
  17. Error: Couldn't create a font for 'STFangsong'
  18. Error: Couldn't create a font for 'STFangsong'
复制代码

前面的警告在启动某些程序的时候都会出现,比如xawtv,一直不明白是什么问题.
后面的error msg?是不是我的字体没有安装好?
我的汉化步骤是按照论坛里面说的打了freetype的补丁之后安装这里 的方法进行汉化的,fonts.scale是用ttmkfdir生成的,然后家了一些粗体和斜体的行。但是在xlsfonts里面看不到simsun的字体信息,在xfontsel里面也没有。
请各位指教.
发表于 2004-5-28 17:31:11 | 显示全部楼层
把那些粗斜体的都删掉,除了带来麻烦之外没别的用处。

关于那个Warning,因为xpdf里面默认使用了这个字体,但是你的系统里面没有,所以会报错。你试试加一个资源项


  1. xpdf*.aboutVersionFont: -*-helvetica-medium-r-normal--16-*-*-*-*-*-iso8859-1
复制代码


看不到simsun。。我也不知道,只能说,肯定有问题。

关于Error Msg,几乎可以肯定你用了ttc字体。
发表于 2004-11-22 13:26:30 | 显示全部楼层
我的错误如下:
我没有patch xpdf的补丁,我的系统是debian。
最大的问题就是只要是中文的书签就是无法显示,adobe也一样。
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-*-hvj-medium-r-normal--12-*-*-*-*-*-iso8859-1,-*-hvj-medium-r-normal--12-*-*-*-*-*-gbk-0" to type FontSet
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-*-hvj-medium-r-normal--12-*-*-*-*-*-iso8859-1,-*-hvj-medium-r-normal--12-*-*-*-*-*-gbk-0" to type FontSet
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-*-hvj-medium-r-normal--12-*-*-*-*-*-iso8859-1,-*-hvj-medium-r-normal--12-*-*-*-*-*-gbk-0" to type FontSet
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-*-hvj-medium-r-normal--12-*-*-*-*-*-iso8859-1,-*-hvj-medium-r-normal--12-*-*-*-*-*-gbk-0" to type FontSet
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-*-hvj-medium-r-normal--12-*-*-*-*-*-iso8859-1,-*-hvj-medium-r-normal--12-*-*-*-*-*-gbk-0" to type FontSet
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-*-hvj-medium-r-normal--12-*-*-*-*-*-iso8859-1,-*-hvj-medium-r-normal--12-*-*-*-*-*-gbk-0" to type FontSet
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-*-hvj-medium-r-normal--12-*-*-*-*-*-iso8859-1,-*-hvj-medium-r-normal--12-*-*-*-*-*-gbk-0" to type FontSet
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-*-hvj-medium-r-normal--12-*-*-*-*-*-iso8859-1,-*-hvj-medium-r-normal--12-*-*-*-*-*-gbk-0" to type FontSet
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-*-hvj-medium-r-normal--12-*-*-*-*-*-iso8859-1,-*-hvj-medium-r-normal--12-*-*-*-*-*-gbk-0" to type FontSet
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-*-hvj-medium-r-normal--12-*-*-*-*-*-iso8859-1,-*-hvj-medium-r-normal--12-*-*-*-*-*-gbk-0" to type FontSet
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-*-hvj-medium-r-normal--12-*-*-*-*-*-iso8859-1,-*-hvj-medium-r-normal--12-*-*-*-*-*-gbk-0" to type FontSet
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-*-hvj-medium-r-normal--12-*-*-*-*-*-iso8859-1,-*-hvj-medium-r-normal--12-*-*-*-*-*-gbk-0" to type FontSet
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-*-hvj-medium-r-normal--12-*-*-*-*-*-iso8859-1,-*-hvj-medium-r-normal--12-*-*-*-*-*-gbk-0" to type FontSet
 楼主| 发表于 2004-11-22 13:44:10 | 显示全部楼层
用中文portage的补丁和配置方法。
要不换成gentoo吧。
发表于 2004-11-23 12:08:11 | 显示全部楼层
不行的。有的英文部分还是有error的报告。
Warning:
    Name: printFile
    Class: XmTextField
    Character '\151' not supported in font.  Discarded.

Warning:
    Name: printFile
    Class: XmTextField
    Character '\156' not supported in font.  Discarded.

Warning:
    Name: printFile
    Class: XmTextField
    Character '\147' not supported in font.  Discarded.

Warning:
    Name: printFile
    Class: XmTextField
    Character '\56' not supported in font.  Discarded.

Warning:
    Name: printFile
    Class: XmTextField
    Character '\114' not supported in font.  Discarded.

Warning:
    Name: printFile
    Class: XmTextField
    Character '\151' not supported in font.  Discarded.

Warning:
    Name: printFile
    Class: XmTextField
    Character '\156' not supported in font.  Discarded.

Warning:
    Name: printFile
    Class: XmTextField
    Character '\165' not supported in font.  Discarded.

Warning:
    Name: printFile
    Class: XmTextField
    Character '\170' not supported in font.  Discarded.

Warning:
    Name: printFile
    Class: XmTextField
    Character '\56' not supported in font.  Discarded.

Warning:
    Name: printFile
    Class: XmTextField
    Character '\120' not supported in font.  Discarded.

Warning:
    Name: printFile
    Class: XmTextField
    Character '\162' not supported in font.  Discarded.
 楼主| 发表于 2004-11-23 12:15:50 | 显示全部楼层
看看/etc/X11/app-defaults/有没有Xpdf
如果没有添加

  1. xpdf*.fontList: -*-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1;-misc-simsun-medium-r-normal--12-*-*-*-*-*-gbk-0:
复制代码

重启x看看有没有搞定?!
不过好象GB18030的locale支持有问题,用GB2312和GBK就没有问题了。
发表于 2004-11-24 09:18:59 | 显示全部楼层
科大境象有打过补丁的xpdf
发表于 2004-11-24 09:34:24 | 显示全部楼层
科大的UO好像是有xpdf的新版本,我试试,昨天我没有试,希望是打过补丁的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表