-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing VmtxTable fails for C:\Windows\Fonts\msyi.ttf #6
Comments
It looks like it also happens in Note that I've just pushed a new version to master, that highlights this issue better. |
After adding sanity checks that compares the expected table length and the actual table length there are problems in a lot of fonts. A similar issue occurs in the HmtxTable table. I suspect the counters are maybe wrong: |
I found the problem: I used the https://github.com/roy-t/TrueType/blob/master/RoyT.TrueType/Tables/HheaTable.cs#L28 |
Ah yes it uses |
Can be closed now. Thanks for the support :-) Also, readme still states netstandard 1.6 instead of 2.0 |
Oops, I'll fix that over the weekend. No problem. Hope it solves your issues!
…________________________________
From: Wouter de Vries ***@***.***>
Sent: Friday, February 24, 2023 4:09:37 PM
To: roy-t/TrueType ***@***.***>
Cc: Roy Triesscheijn ***@***.***>; Author ***@***.***>
Subject: Re: [roy-t/TrueType] Parsing VmtxTable fails for C:\Windows\Fonts\msyi.ttf (Issue #6)
Can be closed now. Thanks for the support :-)
Also, readme still states netstandard 1.6 instead of 2.0
—
Reply to this email directly, view it on GitHub<#6 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAEYIERXWM4NW2S2PQX45XLWZDFLDANCNFSM6AAAAAAU5JJW2Y>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
@wldevries the new addition for the VmtxTable seems to have a bug, with the msyi.ttf font it fails because it tries to read past the end of the stream.
Can you try to run WindowsFontsTest.ShouldParseWindowsFonts and try to debug the issue? Unfortunately I'm not familiar with the VmtxTable, but for you its fresh in your head 😄 .
The text was updated successfully, but these errors were encountered: