In function CFF_Init_Face(), when we process a pure CFF font, set

`root->ascender' (`root->descender') to the integer part of the
`root->bbox.yMax' (`root->bbox.yMin', respectively).
This commit is contained in:
Tom Kacvinsky 2001-03-17 16:36:51 +00:00
parent 3952f6c778
commit 8958d03ad1
1 changed files with 2 additions and 2 deletions

View File

@ -388,8 +388,8 @@
/* set global bbox, as well as EM size */
root->bbox = dict->font_bbox;
root->ascender = (FT_Short)root->bbox.yMax;
root->descender = (FT_Short)root->bbox.yMin;
root->ascender = root->bbox.yMax >> 16;
root->descender = root->bbox.yMin >> 16;
root->height = ( ( root->ascender - root->descender ) * 12 ) / 10;
if ( dict->units_per_em )