ref: 822604c83185d4b7c86d90f5e1d8eb2bd78152bf
parent: 174b8de3283c921d8bddf48325fe42ba7330a930
author: Werner Lemberg <[email protected]>
date: Tue Oct 14 03:28:03 EDT 2008
* src/cff/cffobjs.c (cff_face_init): Remove compiler warning. Suggested by Bram Tassyns in Savannah patch #6651.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-14 Werner Lemberg <[email protected]>
+
+ * src/cff/cffobjs.c (cff_face_init): Remove compiler warning.
+ Suggested by Bram Tassyns in Savannah patch #6651.
+
2008-10-12 Graham Asher <[email protected]>
* src/sfnt/sfobjs.c (sfnt_load_face): Fix computation of
--- a/src/cff/cffobjs.c
+++ b/src/cff/cffobjs.c
@@ -659,8 +659,7 @@
cffface->bbox.xMax = ( dict->font_bbox.xMax + 0xFFFFU ) >> 16;
cffface->bbox.yMax = ( dict->font_bbox.yMax + 0xFFFFU ) >> 16;
-
- cffface->units_per_EM = dict->units_per_em;
+ cffface->units_per_EM = (FT_UShort)( dict->units_per_em );
cffface->ascender = (FT_Short)( cffface->bbox.yMax );
cffface->descender = (FT_Short)( cffface->bbox.yMin );