From 753daf1ceebe948d1afbaba73d0198188bb9b456 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Fri, 6 May 2005 19:24:13 +0000 Subject: [PATCH] * src/cff/cffobjs.c (cff_face_init): Set ppem value in top dictionary for SFNT-based CFF. --- ChangeLog | 5 +++++ src/cff/cffobjs.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5f625550f..bf076e9c3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-05-06 Werner Lemberg + + * src/cff/cffobjs.c (cff_face_init): Set ppem value in top + dictionary for SFNT-based CFF. + 2005-05-05 Werner Lemberg Handle malformed `loca' table entries. diff --git a/src/cff/cffobjs.c b/src/cff/cffobjs.c index 77ef88b82..8522c1f1f 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-- )