Fix format 2 cmap handling in sfnt.c
authorPip Cet <pipcet@protonmail.com>
Sun, 11 Aug 2024 10:07:12 +0000 (10:07 +0000)
committerPip Cet <pipcet@protonmail.com>
Sun, 11 Aug 2024 10:22:46 +0000 (10:22 +0000)
commit5c3d340e001187ad027bc0328f738938a2bc32c5
treecdadcc9d33987121d060952492ff9b17d222e42b
parent8e925d582adba5619ab6f8d2bc7cd6a3a522a28b
Fix format 2 cmap handling in sfnt.c

This code is untested as no font with a format 2 cmap could be found.

* src/sfnt.c (sfnt_lookup_glyph_2): Fix typos.  Assume single-byte
encodings use character codes 0, 1, ..., 255 rather than 0, 256, ...,
65280.
src/sfnt.c