Clipping of vector fonts

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

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.