[sfnt] Make `tt_cmap4_char_map_linear' faster (#46078).
* src/sfnt/ttcmap.c (tt_cmap4_char_map_linear): Use inner loop to reject too large glyph indices.
This commit is contained in:
parent
8bbcfb2c2f
commit
5f8f44d218
|
@ -1,3 +1,10 @@
|
||||||
|
2015-10-01 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
[sfnt] Make `tt_cmap4_char_map_linear' faster (#46078).
|
||||||
|
|
||||||
|
* src/sfnt/ttcmap.c (tt_cmap4_char_map_linear): Use inner loop to
|
||||||
|
reject too large glyph indices.
|
||||||
|
|
||||||
2015-09-30 Alexei Podtelezhnikov <apodtele@gmail.com>
|
2015-09-30 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||||
|
|
||||||
[smooth] Clean up worker.
|
[smooth] Clean up worker.
|
||||||
|
|
|
@ -1115,7 +1115,11 @@
|
||||||
|
|
||||||
gindex = TT_PEEK_USHORT( r );
|
gindex = TT_PEEK_USHORT( r );
|
||||||
if ( gindex )
|
if ( gindex )
|
||||||
|
{
|
||||||
gindex = (FT_UInt)( (FT_Int)gindex + delta ) & 0xFFFFU;
|
gindex = (FT_UInt)( (FT_Int)gindex + delta ) & 0xFFFFU;
|
||||||
|
if ( gindex >= (FT_UInt)face->root.num_glyphs )
|
||||||
|
gindex = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue