Created
February 23, 2016 15:13
-
-
Save qwIvan/372fcb16b60e908d65a8 to your computer and use it in GitHub Desktop.
Merging Font with FontForge, http://7thgen.info/blog/2008/07/merging-font-with-fontforge/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pre-operation for some non-standard Chinese font file | |
Open("font_b.ttf") | |
SelectAll() | |
ScaleToEm(1024) | |
Generate("temp.ttf", "", 0x14) | |
Close() | |
# Open English font and merge to the Chinese font | |
Open("font_a.ttf") | |
SelectAll() | |
ScaleToEm(1024) | |
MergeFonts("temp.ttf") | |
SetFontNames("FontName", "Font Family", "Full Name", "Style", "") | |
Generate("font_merged.ttf", "", 0x14) | |
Close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment