mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
Dont ignore errors from FT_Get_Glyph
This commit is contained in:
parent
a00c2b1bf5
commit
9f25f736ed
@ -1089,7 +1089,15 @@ gdImageStringFTEx (gdImage * im, int *brect, int fg, char *fontlist, double ptsi
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* transform glyph image */
|
/* transform glyph image */
|
||||||
FT_Get_Glyph(slot, &image);
|
if (FT_Get_Glyph(slot, &image)) {
|
||||||
|
if (tmpstr) {
|
||||||
|
gdFree(tmpstr);
|
||||||
|
}
|
||||||
|
gdCacheDelete(tc_cache);
|
||||||
|
gdMutexUnlock(gdFontCacheMutex);
|
||||||
|
return "Problem loading glyph";
|
||||||
|
}
|
||||||
|
|
||||||
if (brect) { /* only if need brect */
|
if (brect) { /* only if need brect */
|
||||||
FT_Glyph_Get_CBox(image, ft_glyph_bbox_gridfit, &glyph_bbox);
|
FT_Glyph_Get_CBox(image, ft_glyph_bbox_gridfit, &glyph_bbox);
|
||||||
glyph_bbox.xMin += penf.x;
|
glyph_bbox.xMin += penf.x;
|
||||||
|
Loading…
Reference in New Issue
Block a user