Skip to content

Instantly share code, notes, and snippets.

@victory316
Created July 10, 2024 11:17
Show Gist options
  • Save victory316/b983daff9df9c79b0fb436042f5bc753 to your computer and use it in GitHub Desktop.
Save victory316/b983daff9df9c79b0fb436042f5bc753 to your computer and use it in GitHub Desktop.
Example of creating subset including English, Korean, Japanese using fonttools
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