Commit 483daa9f74fcabc4846d2cf5f483ebfd50ef60f7

Werner Lemberg 2005-05-06T19:24:13

* src/cff/cffobjs.c (cff_face_init): Set ppem value in top dictionary for SFNT-based CFF.

diff --git a/ChangeLog b/ChangeLog
index 5f62555..bf076e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-06  Werner Lemberg  <wl@gnu.org>
+
+	* src/cff/cffobjs.c (cff_face_init): Set ppem value in top
+	dictionary for SFNT-based CFF.
+
 2005-05-05  Werner Lemberg  <wl@gnu.org>
 
 	Handle malformed `loca' table entries.
diff --git a/src/cff/cffobjs.c b/src/cff/cffobjs.c
index 77ef88b..8522c1f 100644
--- a/src/cff/cffobjs.c
+++ b/src/cff/cffobjs.c
@@ -685,6 +685,11 @@
 
         cffface->style_flags = flags;
       }
+      else
+      {
+        if ( !dict->units_per_em )
+          dict->units_per_em = face->root.units_per_EM;
+      }
 
       /* handle font matrix settings in subfonts (if any) */
       for ( i = cff->num_subfonts; i > 0; i-- )