|
发表于 2008-7-31 14:42:41
|
显示全部楼层
无法成功
不成功,这是怎么一回事呀:
- $ ttf2pt1 -e /usr/share/fonts/TTF/uming.ttf uming
- Using language 'latin1' for Unicode fonts
- Auto-detected front-end parser 'ttf'
- (use ttf2pt1 -p? to get the full list of available front-ends)
- Processing file /usr/share/fonts/TTF/uming.ttf
- Font contains bitmaps
- # List of downloadable fonts
- Font contains bitmaps
- Creating file uming.pfa
- numglyphs = 21990
- Glyph 444 has the same name as 113: (macron), changing to _d_444
- Found Unicode Encoding
- Guessed italic angle: 0.000000
- Warning: glyph uni9AA8_cn needs hint stack depth 130
- (limit 128): removed the substituted hints from it
- FontName ShanHeiSun-Uni
- No Kerning data
- Finished - font files created
- $ ls
- uming
- uming.afm
- uming.pfa
- $ mv uming* /usr/local/share/groff/1.19.3/font/devps/
- $ ehco 'uming uming.pfa' >> /usr/local/share/groff/1.19.3/font/devps/download
- $ printf ".ft uming\n 白日依山尽!" | /usr/local/bin/groff -Kutf8 > test.ps
- <standard input>:2: warning: can't find special character `u767D'
- <standard input>:2: warning: can't find special character `u65E5'
- <standard input>:2: warning: can't find special character `u4F9D'
- <standard input>:2: warning: can't find special character `u5C71'
- <standard input>:2: warning: can't find special character `u5C3D'
- <standard input>:2: warning: can't find special character `uFF01'
复制代码
经验:如果从网上学点什么,自己试试,必然是不成功的。
说明:
- uming是CJK Unifont之中的中文,Ubuntu上默认的中文字体,是宋体。
- 我用的groff是发贴当天从CVS上checkout出来的。更早的版本没有-K参数。
- ttf2pt1 版本是3.4.0
|
|