michaelrsweet / pdfio

PDFio is a simple C library for reading and writing PDF files.
https://www.msweet.org/pdfio
Apache License 2.0
198 stars 44 forks source link

TrueType/OpenType font support #2

Closed michaelrsweet closed 3 years ago

michaelrsweet commented 3 years ago

Implement pdfioFileCreateFontObjFromFile for TrueType/OpenType font files.

Need to also determine how best to support multiple typefaces from ttc/otc (collection) files, since a single font stream object could potentially be referenced by multiple font descriptors (one file contains multiple styles).

michaelrsweet commented 3 years ago

Committed very basic support - still needs to build a font descriptor, Widths array, etc.

michaelrsweet commented 3 years ago

Added my minimal TrueType/OpenType support. Still needs more work for full Unicode text support.

michaelrsweet commented 3 years ago

Well, I have everything in there that should be needed for full Unicode, but I'm still getting some rendering issues with the NotoSansJP font I'm testing with. I've created issue #16 to track these issues.