shithub: freetype+ttf2subf

Download patch

ref: 34e467332b0b5ecb03641540e715202204616139
parent: 43d4852ec6cfa1df126635ba65d65b22f12d3603
author: Ben Wagner <[email protected]>
date: Fri Mar 23 02:13:25 EDT 2018

[sfnt] Correctly handle missing bitmaps in sbix format (#53404).

* src/sfnt/ttfsbit.c (tt_face_load_sbix_image): Fix return value.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2018-03-23  Ben Wagner  <[email protected]>
 
+	[sfnt] Correctly handle missing bitmaps in sbix format (#53404).
+
+	* src/sfnt/ttfsbit.c (tt_face_load_sbix_image): Fix return value.
+
+2018-03-23  Ben Wagner  <[email protected]>
+
 	[truetype] Fix advance of empty glyphs in bitmap fonts (#53393).
 
 	* src/truetype/ttgload.c (TT_Load_Glyph): Apply scaling to metrics
--- a/src/sfnt/ttsbit.c
+++ b/src/sfnt/ttsbit.c
@@ -1514,7 +1514,7 @@
     FT_FRAME_EXIT();
 
     if ( glyph_start == glyph_end )
-      return FT_THROW( Invalid_Argument );
+      return FT_THROW( Missing_Bitmap );
     if ( glyph_start > glyph_end                     ||
          glyph_end - glyph_start < 8                 ||
          face->ebdt_size - strike_offset < glyph_end )