glyph_extractor
1.0.0
Glyph Extractor is a small Python script for extracting font glyphs as PNG files. It supports TTF and OTF fonts and capable of extracting all glyphs out of them, including colored emojis.
pip install -r requirements.pippython extract_glyphs.py <path_to_font>output folderPlease note: if you want to extract glyphs with embedded colors (e.g. emojis)
from OTF font you may also need to install Cairo binaries. You can do this
with brew install cairo on MacOS. Please see
CairoSVG documentation for other
platforms.
--fill-color argument).--no-embed-colors argument, but note that less count of glyphs may be exported.invalid pixel size errors).Glyph Extractor was tested (and works!) on this emoji fonts:
/System/Library/Fonts/Apple Color Emoji.ttc if you are using MacOS)If you want to use extracted glyphs in your work please respect used font license.