Generally, a vector Chinese character Library is close to 10 MB, which is too large. I may only need to display a few specific Chinese characters. how can I extract or crop a ready-made font? I tried a font tailoring tool written by a Chinese user. I tried to use the mouse for several times and only supported the system font, which is not very convenient. I also try to use a vector Chinese character library that is close to 10 MB, which is too large. I may only need to display a few specific Chinese characters. how can I extract or crop a ready-made font? I tried a Chinese "font tailoring tool". I tried the mouse several times and only supported the system font, which is not very convenient. I also tried to find a similar function in font creator 4.1, but unfortunately I did not find it. The following describes a method. after using font forge, we can find it very powerful. the original Unix inheritance was restrained.
#fontforge.exe -script font-select.pe simyou.ttf youyuan_asc.ttf Open($1) ############ ##ascii SelectMore(0u0020, 0u0080); ############ SelectInvert(); DetachAndRemoveGlyphs(); Generate($2, "", 0x14) Close();
Note that SelectMore (a, B, c, d) indicates to select the range [a, B], [c, d]; SelectMore (a) indicates to select a single; at first, I made a mistake and took some detours. If you want to process a piece of Chinese, you can first convert iconv to ucs-2le, and then as Exercise 8) to 0 uxxxx output. In addition, if we want to replace the English part of the Chinese font, we can do this:
# font merge # e.g. replace font file $1 with good english font $2: # fontforge.exe -script font-merge.pe simyou.ttf SegoeWP.ttf merged.ttf Open($1) SelectAll() ScaleToEm(1024) Generate("temp.ttf", "", 0x14) Close() Open($2) SelectAll() ScaleToEm(1024) MergeFonts("temp.ttf") SetFontNames("FontName", "Font Family", "Full Name", "Style", "") Generate($3, "", 0x14) Close()
Finally, more advanced gameplay is to use fontforge to open the sfd File: http://levien.com/type/myfonts/Inconsolata.sfd Inconsolata is one of the top ten fonts that programmers use.