利用FreeType提取了Simsun字体,但是为设么提取不了文鼎字体?
rorot 2005-04-08 06:48:21 使用FreeType2 利用Unicode可以从simsun.ttf里提取中文字体. 但是当我从网络里下载了文鼎行楷字体
GSKB00B.TTF, 再尝试从文鼎字体里提取中文时,FT_Get_Char_Index() 总是返回错误0值. 也就是说我
没有办法获得每个文字对应的文鼎字体的索引.
请问怎么解决?
下面是字体信息:
rorot@[examples]$ freetype-config --version
9.5.3
rorot@[examples]$ ./font-info.pl ~/program/image/FreeType/GSKB00B.TTF
Use of uninitialized value in print at ./font-info.pl line 11.
Family name:
Scalable Fixed width Glyph names (unreliable) SFNT Horizontal Vertical
Units per em: 1024
Number of glyphs: 8435
rorot@[examples]$ ./font-info.pl ~/program/image/FreeType/simsun.ttf
Family name: SimSun
Style name: Regular
PostScript name: SimSun
Scalable Glyph names (unreliable) SFNT Horizontal Vertical
Units per em: 256
Number of glyphs: 22141
Number of faces: 2
Fixed sizes:
size 12, width 6, height 14, x_res_dpi 72, y_res_dpi 72
size 14, width 7, height 16, x_res_dpi 72, y_res_dpi 72
size 16, width 8, height 18, x_res_dpi 72, y_res_dpi 72
size 18, width 9, height 21, x_res_dpi 72, y_res_dpi 72
size 15, width 8, height 17, x_res_dpi 72, y_res_dpi 72
size 13, width 7, height 15, x_res_dpi 72, y_res_dpi 72
rorot@0[examples]$ ./font-info.pl ~/program/image/FreeType/GPSK00L.TTF
Family name: ???????
Style name: Regular
Scalable Fixed width Glyph names (unreliable) SFNT Horizontal Vertical
Units per em: 1024
Number of glyphs: 8435