Cutting vector font

Source: Internet
Author: User
Tags vector font
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.