[truetype] Typo.

Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>.

* src/sfnt/sfobjs.c (sfnt_load_face): Return correct `bsize->width'
value if the font lacks an `OS/2' table.
This commit is contained in:
Werner Lemberg 2013-11-21 13:13:12 +01:00
parent 427b176893
commit 8af2a1cd95
2 changed files with 10 additions and 1 deletions

@ -1,3 +1,12 @@
2013-11-21 Werner Lemberg <wl@gnu.org>
[truetype] Typo.
Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>.
* 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 <wl@gnu.org>
[truetype] Improve handling of buggy embedded bitmap strikes.

@ -1339,7 +1339,7 @@
if ( em_size == 0 || face->os2.version == 0xFFFFU )
{
avgwidth = 0;
avgwidth = 1;
em_size = 1;
}