umanwizard / libeot

Library for parsing Embedded OpenType files (Microsoft embedded font "standard"), and converting them to other formats
Other
14 stars 6 forks source link

Support extracting OTF from EOT #2

Closed smunaut closed 6 years ago

smunaut commented 9 years ago

When looking at some fonts embedded in pptx files, not all of them have the 'glyf' and they're not TTF, they're still OTF on with only the PS outline (IIRC).

This patch allow to also extract those from EOT as well and we've been using it successfully to recreate .otf files (you can name ttf as .otf too) from all the EOT embedded and then using libreoffice to read the PPTX with the custom fonts extracted.

umanwizard commented 9 years ago

Thanks for the PR - I will review it sometime next week, as I'm on vacation currently.

umanwizard commented 9 years ago

OK, I didn't realize that EOTs could also contain OTF files. Can you send me an example .pptx so I can see that this patch works?