mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-05 08:58:00 +02:00
Added calculation of `face->height' for pure CFF fonts.
This commit is contained in:
parent
61d8ed8f4d
commit
4efbfc9ba2
1 changed files with 1 additions and 0 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue