From 21da848451facdefe0a276cdb9fdad99006e1bbe Mon Sep 17 00:00:00 2001 From: Tom Kacvinsky Date: Thu, 30 Nov 2000 21:53:39 +0000 Subject: [PATCH] Added calculation of `face->height' for pure CFF fonts. --- src/cff/t2objs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cff/t2objs.c b/src/cff/t2objs.c index c1d3f77b4..cc6af95b3 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 );