Boris patches for ascender/descender/text height

This commit is contained in:
David Turner 2000-07-17 22:14:12 +00:00
parent 5aa646c565
commit 2f8f154241
1 changed files with 5 additions and 0 deletions

View File

@ -453,6 +453,11 @@
if ( cur->header.pixel_height == size->root.metrics.y_ppem )
{
size->font = cur;
size->root.metrics.ascender = cur->header.ascent*64;
size->root.metrics.descender =(cur->header.pixel_height -
cur->header.ascent)*64;
size->root.metrics.height = cur->header.pixel_height*64;
break;
}
}