diff options
author | Alexei Podtelezhnikov <apodtele@gmail.com> | 2023-04-08 23:15:41 -0400 |
---|---|---|
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | 2023-04-08 23:15:41 -0400 |
commit | d25444333c07951bf16788862420e311799c0ad0 (patch) | |
tree | 50d3f7460798878e47b0b9e1dbfe6b1a21a3c538 /src/winfonts/winfnt.c | |
parent | b0a4f99278aa7e14bd1d0d9e40ad28dce543fde6 (diff) | |
download | freetype2-d25444333c07951bf16788862420e311799c0ad0.tar.gz |
[sfnt] Clean up CMAP{4,12,13} handling.
This moves the charcode overflow checks upstream and turns some
while-loops into the do-while ones to avoid the uninitialized warnings.
This should slightly reduce the number of checks and jumps.
* src/sfnt/ttcmap.c (tt_cmap{4,12,13}_next,
tt_cmap{4.12.13}_char_map_linear): Remove the charcode overflow check.
(tt_cmap{4,12,13}_char_map_binary): Ditto and use do-while.
(tt_cmap{12,13}_char_next): Add the overflow check.
Diffstat (limited to 'src/winfonts/winfnt.c')
0 files changed, 0 insertions, 0 deletions