Skip to content

Commit 53d1460

Browse files
committed
Apply FT_LOAD_NO_BITMAP in FT_Load_Glyph (#5567)
1 parent f2b1afe commit 53d1460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fontcache.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ outline_element* msGetGlyphOutline(face_element *face, glyph_element *glyph) {
284284
matrix.xy = matrix.yx = 0x00000L;
285285
pen.x = pen.y = 0;
286286
FT_Set_Transform(face->face, &matrix, &pen);
287-
error = FT_Load_Glyph(face->face,glyph->key.codepoint,FT_LOAD_DEFAULT/*|FT_LOAD_IGNORE_TRANSFORM*/|FT_LOAD_NO_HINTING|FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH);
287+
error = FT_Load_Glyph(face->face,glyph->key.codepoint,FT_LOAD_DEFAULT|FT_LOAD_NO_BITMAP/*|FT_LOAD_IGNORE_TRANSFORM*/|FT_LOAD_NO_HINTING|FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH);
288288
if(error) {
289289
msSetError(MS_MISCERR, "unable to load glyph %ud for font \"%s\"", "msGetGlyphByIndex()",glyph->key.codepoint, face->font);
290290
return NULL;

0 commit comments

Comments
 (0)