shithub: freetype+ttf2subf

Download patch

ref: 21da848451facdefe0a276cdb9fdad99006e1bbe
parent: 6c65d91cc71b51a2f6b85697c23a81966a421f3a
author: Tom Kacvinsky <[email protected]>
date: Thu Nov 30 16:53:39 EST 2000

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

git/fs: mount .git/fs: mount/attach disallowed
--- 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 );