prawnpdf / ttfunk

Font Metrics Parser for Prawn
http://prawnpdf.org
Other
125 stars 75 forks source link

Compute statistics for CFF fonts #68

Closed camertron closed 5 years ago

camertron commented 5 years ago

This pull request is part of a larger effort to bring OTF support to TTFunk. See https://github.com/prawnpdf/ttfunk/issues/53 for details.

This PR augments TTFunk's ability to calculate font metrics for both postscript fonts (i.e. "normal" fonts) and CFF-flavored fonts. It updates the glyf, hhea, head, maxp, and os/2 tables specifically.

pointlessone commented 5 years ago

@camertron Could you please rebase this branch on top of otf branch?

camertron commented 5 years ago

@pointlessone sure, but I'd rather do it just before we merge. Is the diff difficult to read?

camertron commented 5 years ago

@pointlessone I think this PR is ready for another look when you have a chance :)

camertron commented 5 years ago

@pointlessone cool! I'll rebase this and then I think we'll be good to go!

camertron commented 5 years ago

@pointlessone ok, rebase complete!