Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
x/image/font/sfnt: horizontal metrics table (hmtx) validation is incorrect #28379
What did you do?
Parse an embedded TTF font from PDF object.
What did you expect to see?
What did you see instead?
It seems that the validation code for
In case anyone else was confused, the square brackets in @dennwc's original post:
The original bug report also claimed that the spec allows for just
Still, a comment in the freetype library's ttload.c says:
and also, eyeballing its tt_face_get_metrics function in ttmtx.c suggests that FreeType doesn't enforce that the hmtx table is exactly