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

This commit is contained in:
Tom Kacvinsky 2000-11-30 21:53:39 +00:00
parent 6c65d91cc7
commit 21da848451
1 changed files with 1 additions and 0 deletions

View File

@ -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 );