forked from minhngoc25a/freetype2
* src/base/ftobjs.c (FT_Get_Color_Glyph_Layer): Guard SFNT function.
Reported by Behdad.
This commit is contained in:
parent
1fc776b5f1
commit
f6ccb524af
|
@ -1,3 +1,9 @@
|
||||||
|
2018-07-01 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
* src/base/ftobjs.c (FT_Get_Color_Glyph_Layer): Guard SFNT function.
|
||||||
|
|
||||||
|
Reported by Behdad.
|
||||||
|
|
||||||
2018-06-28 Alexei Podtelezhnikov <apodtele@gmail.com>
|
2018-06-28 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||||
|
|
||||||
* src/base/fttrigon.c (FT_Tan): Improve accuracy.
|
* src/base/fttrigon.c (FT_Tan): Improve accuracy.
|
||||||
|
|
|
@ -5493,10 +5493,17 @@
|
||||||
ttface = (TT_Face)face;
|
ttface = (TT_Face)face;
|
||||||
sfnt = (SFNT_Service)ttface->sfnt;
|
sfnt = (SFNT_Service)ttface->sfnt;
|
||||||
|
|
||||||
return sfnt->get_colr_layer( ttface,
|
if ( sfnt->get_colr_layer )
|
||||||
base_glyph,
|
return sfnt->get_colr_layer( ttface,
|
||||||
acolor_index,
|
base_glyph,
|
||||||
iterator );
|
acolor_index,
|
||||||
|
iterator );
|
||||||
|
else
|
||||||
|
{
|
||||||
|
*acolor_index = 0;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue