Usually a vector Chinese character library near 10MB, too large, and I may only need to show a few specific characters, how to extract or cut the ready-made font? I have tried a Chinese writing "Font clipping tool", points several times the mouse, only support the system font, not very convenient. I have also tried to find out if there is a similar function in Font creator 4.1, unfortunately I did not find it. Here is a way to use Font forge, after the use of the discovery is very strong, the original Unix passed down are introverted.
#fontforge. exe -script font-select.pe simyou.ttf youyuan_asc.ttf
Open ($)
############
# #ascii
Selectmore (0u0020, 0u0080);
############
Selectinvert ();
Detachandremoveglyphs ();
Generate ($, "", 0x14) close
();
The special note here is that Selectmore (A,B,C,D) represents the choice of [A,b], [c,d] range; Selectmore (a) indicates the choice of a single A; I made a mistake and took some detours. If you want to process a piece of Chinese, you can use Iconv conversion to Ucs-2le, and then as exercise 8 to 0uxxxx such output. In addition, if we want to replace the English part of the Chinese font, you can do this:
# font Merge
# e.g. replace font file with good 中文版 font $:
# fontforge.exe -script font-merge.pe simy Ou.ttf Segoewp.ttf Merged.ttf
Open ($)
SelectAll () scaletoem (1024) Generate (
"Temp.ttf", "", 0x14) Close
()
Open ($)
SelectAll ()
scaletoem (1024)
mergefonts ("Temp.ttf")
setfontnames ("FontName", "Font Family "," Full Name "," Style "," ""
Generate ($, "", 0x14) close
()
Finally, the more advanced play is to open the SFD file with FontForge: HTTP://LEVIEN.COM/TYPE/MYFONTS/INCONSOLATA.SFD Inconsolata is one of the top ten fonts used by programmers.