Created
July 10, 2024 11:17
-
-
Save victory316/b983daff9df9c79b0fb436042f5bc753 to your computer and use it in GitHub Desktop.
Example of creating subset including English, Korean, Japanese using fonttools
This file contains 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
pyftsubset PretendardJP-Black.otf --output-file="./subset-fonts/retendardJP-Black-subset.otf" \ | |
--layout-features='*' \ | |
--unicodes=U+0020-007F,U+1100-11FF,U+AC00-D7AF,U+3130-318F,U+3040-309F,U+30A0-30FF,U+4E00-9FFF,U+FF00-FFEF,U+FF65-FF9F\ | |
--glyph-names \ | |
--symbol-cmap \ | |
--legacy-cmap \ | |
--notdef-glyph \ | |
--notdef-outline \ | |
--recommended-glyphs \ | |
--name-legacy \ | |
--drop-tables= \ | |
--name-IDs='*' \ | |
--name-languages='*' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment