Closed camertron closed 4 years ago
@camertron @pointlessone this commit broke font rendering on all Windows platforms.
@ollym Any specific software/version you refer to?
@pointlessone this is using PrawnPDF. Related to this: https://github.com/prawnpdf/ttfunk/issues/72
Find an attached PDF that demonstrates the issue.
When opened in windows using Acrobat, I get the following error:
And all the fonts are blank. This issue doesn't happen on OSX / Linux / iOS / Android
Rolling back to 1.5.1 fixed the issue. I think it's related to this commit.
@ollym Thank you.
@ollym does the problem happen with v1.6.0?
@camertron just confirmed, it works absolutely fine on 1.6.0 with no problems. The issue was introduced in 1.6.1
I think this comment is a good summary of the errors: https://github.com/prawnpdf/ttfunk/issues/72#issuecomment-571995537
See: https://github.com/prawnpdf/ttfunk/issues/53#issuecomment-570890100
I'm baffled as to how this got past FontValidator, but it did. In fact it turns out basically all our maxp calculations are wrong. Fortunately most font display systems don't care, but we should probably work on computing correct max profile statistics :/