shithub: freetype+ttf2subf

Download patch

ref: 8af2a1cd9505d918e0ae83b78ee1556a421f5e37
parent: 427b176893c0d7770d9e712eff688472288d4242
author: Werner Lemberg <[email protected]>
date: Thu Nov 21 08:13:12 EST 2013

[truetype] Typo.

Problem reported by Hin-Tak Leung <[email protected]>.

* src/sfnt/sfobjs.c (sfnt_load_face): Return correct `bsize->width'
value if the font lacks an `OS/2' table.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2013-11-21  Werner Lemberg  <[email protected]>
 
+	[truetype] Typo.
+
+	Problem reported by Hin-Tak Leung <[email protected]>.
+
+	* src/sfnt/sfobjs.c (sfnt_load_face): Return correct `bsize->width'
+	value if the font lacks an `OS/2' table.
+
+2013-11-21  Werner Lemberg  <[email protected]>
+
 	[truetype] Improve handling of buggy embedded bitmap strikes.
 
 	We are now able to successfully load `AppleMyoungJo.ttf'.
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -1339,7 +1339,7 @@
 
           if ( em_size == 0 || face->os2.version == 0xFFFFU )
           {
-            avgwidth = 0;
+            avgwidth = 1;
             em_size = 1;
           }