dompdf / php-font-lib

A library to read, parse, export and make subsets of different types of font files.
GNU Lesser General Public License v2.1
1.74k stars 255 forks source link

Variable fonts #141

Open gi-jones opened 2 weeks ago

gi-jones commented 2 weeks ago

I've been trying to use the lib to analyze TTF and OTF fonts to extract names and other data. Works well with static fonts, but I get unpredictable results with variable fonts. An example would be: https://fonts.google.com/specimen/SUSE

I that, and similar, cases several font weights/styles is packaged in a single file. Is this supported in any way that I have missed? Or is it just no-go?

bsweeney commented 1 week ago

No work has been done to support variable fonts. The format is based on OpenType format which is why you get something out of the font file, but OTF isn't fully supported. So, for sure some work will need to be done here.

gi-jones commented 1 week ago

No work has been done to support variable fonts. The format is based on OpenType format which is why you get something out of the font file, but OTF isn't fully supported. So, for sure some work will need to be done here.

Ok. Thank you for the clarification.