Skip to content

Commit

Permalink
Apply FT_LOAD_NO_BITMAP in FT_Load_Glyph (#5567)
Browse files Browse the repository at this point in the history
  • Loading branch information
szekerest committed Mar 18, 2018
1 parent f2b1afe commit 53d1460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fontcache.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ outline_element* msGetGlyphOutline(face_element *face, glyph_element *glyph) {
matrix.xy = matrix.yx = 0x00000L; matrix.xy = matrix.yx = 0x00000L;
pen.x = pen.y = 0; pen.x = pen.y = 0;
FT_Set_Transform(face->face, &matrix, &pen); 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) { if(error) {
msSetError(MS_MISCERR, "unable to load glyph %ud for font \"%s\"", "msGetGlyphByIndex()",glyph->key.codepoint, face->font); msSetError(MS_MISCERR, "unable to load glyph %ud for font \"%s\"", "msGetGlyphByIndex()",glyph->key.codepoint, face->font);
return NULL; return NULL;
Expand Down

0 comments on commit 53d1460

Please sign in to comment.