shithub: freetype+ttf2subf

Download patch

ref: 809d5125af527dd589d303cd8ae988dad58d00d6
parent: 4b49a8079f23a0c6c8c8d9b92454780a19035947
author: Alexei Podtelezhnikov <[email protected]>
date: Fri Aug 31 18:49:19 EDT 2018

* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Check glyph format.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2018-08-30  Alexei Podtelezhnikov  <[email protected]>
+
+	* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Check glyph format.
+
 2018-08-31  Armin Hasitzka  <[email protected]>
 
 	[errors] Refine the macro logic surrounding `FT_Error_String'.
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -361,8 +361,8 @@
     FT_Pos   width, height, pitch;
 
 
-    if ( slot->internal && ( slot->internal->flags & FT_GLYPH_OWN_BITMAP ) )
-      return;
+    if ( slot->format != FT_GLYPH_FORMAT_OUTLINE )
+      return 1;
 
     if ( origin )
     {