typemytype / drawbot

http://www.drawbot.com
Other
401 stars 62 forks source link

add fontInfo() method #257

Open typemytype opened 5 years ago

typemytype commented 5 years ago

combine all fontAscender() fontDescender() into a ufo.info like object and deprecate those methods

add name table entries from https://developer.apple.com/documentation/coretext/ctfont/name_specifier_constants?language=objc

info = fontInfo(fontName=None)
print(info.ascender)

when fontName is None use the current font

justvanrossum commented 3 years ago

... and fontName could also be a fontPath.

typemytype commented 3 years ago

yeah, something like pathOrFontName and it should try to figure out what to get where.