From 8af2a1cd9505d918e0ae83b78ee1556a421f5e37 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Thu, 21 Nov 2013 13:13:12 +0100 Subject: [PATCH] [truetype] Typo. Problem reported by Hin-Tak Leung . * src/sfnt/sfobjs.c (sfnt_load_face): Return correct `bsize->width' value if the font lacks an `OS/2' table. --- ChangeLog | 9 +++++++++ src/sfnt/sfobjs.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6f1db9f5d..8d5670152 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2013-11-21 Werner Lemberg + + [truetype] Typo. + + Problem reported by Hin-Tak Leung . + + * 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 [truetype] Improve handling of buggy embedded bitmap strikes. diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c index 1cf1bf20b..5c0d0f61c 100644 --- 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; }