Commit 21da848451facdefe0a276cdb9fdad99006e1bbe

Tom Kacvinsky 2000-11-30T21:53:39

Added calculation of `face->height' for pure CFF fonts.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/cff/t2objs.c b/src/cff/t2objs.c
index c1d3f77..cc6af95 100644
--- a/src/cff/t2objs.c
+++ b/src/cff/t2objs.c
@@ -400,6 +400,7 @@
         root->bbox         = dict->font_bbox;
         root->ascender     = (FT_Short)root->bbox.yMax;
         root->descender    = (FT_Short)root->bbox.yMin;
+        root->height       = ( ( root->ascender - root->descender ) * 12 ) / 10;
 
         /* retrieve font family & style name */
         root->family_name = T2_Get_Name( &cff->name_index, face_index );