abenokobo / PDFontTool

Converts TrueType Font(.ttf), OpenType Font(.otf) to Playdate Font(.fnt + png).
MIT License
73 stars 1 forks source link

[Feature Request] choose glyphs #5

Open loudoweb opened 1 year ago

loudoweb commented 1 year ago

It would be great to limit the font generated to a list of glyphs as we don't need every glyphs available for every fonts and size.

-glyphs ABCDEFGHIJKLMNOPQRSTUVXYZ

or maybe with a regular expression

-glyphs A-Za-z0-9

or with variables

-glyphs capital numeric accents

takuyamsc commented 1 year ago

Thank you for your request!

Since PDFontTool is only positioned as a tool for conversion, I am not planning to implement glyph selection at this time.

I recommend that you create font subsets first and then use PDFontTool. I have not tried it, but I believe you can create font subsets with "pyftsubset" or other .