]> git.eshelyaron.com Git - emacs.git/commit
Properly parse format 4 cmap tables
authorPo Lu <luangruo@yahoo.com>
Thu, 24 Aug 2023 08:32:42 +0000 (16:32 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 24 Aug 2023 08:36:13 +0000 (16:36 +0800)
commitad5e17d0638be46f982d1448e8fef1d28d224735
treecd9fd66de4de975c1624d41ef9a5603d8ba2f081
parentb9917f11521d47426330d79c65f9726c8fd7f8f7
Properly parse format 4 cmap tables

* src/sfnt.c (sfnt_read_cmap_format_4): Read range_shift field
propery.  Prior to this, it would be inadvertently treated as an
entry within the segment end code array, which only functioned
by happenstance.
(sfnt_lookup_glyph_4): Remove workaround grounded upon an
erroneous interpretation of the bug fixed by the aformentioned
change.

* src/sfnt.h (struct sfnt_cmap_format_4): Introduce previously
absent `range_shift' field.
src/sfnt.c
src/sfnt.h