ref: 2f8f1542418cfde15eef86527cc109d506d270ec
parent: 5aa646c565b963d44e295162dbe27c039fdd2e1b
author: David Turner <[email protected]>
date: Mon Jul 17 18:14:12 EDT 2000
Boris patches for ascender/descender/text height
--- a/src/winfonts/winfnt.c
+++ b/src/winfonts/winfnt.c
@@ -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;
}
}