Permalink
Browse files

Apply FT_LOAD_NO_BITMAP in FT_Load_Glyph (#5567)

  • Loading branch information...
szekerest committed Mar 18, 2018
1 parent f2b1afe commit 53d146097e988d1084d794ee0eccb0f766fb3b62
Showing with 1 addition and 1 deletion.
  1. +1 −1 fontcache.c
@@ -284,7 +284,7 @@ outline_element* msGetGlyphOutline(face_element *face, glyph_element *glyph) {
matrix.xy = matrix.yx = 0x00000L;
pen.x = pen.y = 0;
FT_Set_Transform(face->face, &matrix, &pen);
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);
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);
if(error) {
msSetError(MS_MISCERR, "unable to load glyph %ud for font \"%s\"", "msGetGlyphByIndex()",glyph->key.codepoint, face->font);
return NULL;

0 comments on commit 53d1460

Please sign in to comment.