Skip to content

[truetype] Binary search through `hdmx` records.

Alexei Podtelezhnikov requested to merge hdmx-advances into master

The hdmx table is supposed to be sorted by ppem size, which enables binary search. We also drop the check for the sufficient length of the record because it is now enforced when the table is loaded.

  • src/truetype/ttpload.c (tt_face_get_device_metrics): Implement binary search to retrieve advances.

Merge request reports