summaryrefslogtreecommitdiff
path: root/src/type1
diff options
context:
space:
mode:
authorDavid Turner <david@freetype.org>2002-03-06 12:38:15 +0000
committerDavid Turner <david@freetype.org>2002-03-06 12:38:15 +0000
commitacfea4ddd9ba75cf207a922146b5fbef7fddb71b (patch)
tree7c5af74a0cba4274a4cfbd4a9bb81c1d2a137d8f /src/type1
parent9ddeee1d41420b82ac2120a3f471b9aea35c56f0 (diff)
downloadfreetype2-acfea4ddd9ba75cf207a922146b5fbef7fddb71b.tar.gz
* src/type1/t1objs.c (T1_Face_Init), src/cid/cidobjs.c (CID_Face_Init):
fixed another bug related to the ascender/descender/text height of Postscript fonts. Damn, this should have been fixed on 2002-03-04 !
Diffstat (limited to 'src/type1')
-rw-r--r--src/type1/t1objs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/type1/t1objs.c b/src/type1/t1objs.c
index 4f3e73202..7c36a6fae 100644
--- a/src/type1/t1objs.c
+++ b/src/type1/t1objs.c
@@ -413,14 +413,14 @@
if ( !root->units_per_EM )
root->units_per_EM = 1000;
- root->ascender = (FT_Short)( face->type1.font_bbox.yMax );
- root->descender = (FT_Short)( face->type1.font_bbox.yMin );
+ root->ascender = (FT_Short)( root->bbox.yMax );
+ root->descender = (FT_Short)( root->bbox.yMin );
root->height = (FT_Short)(
( ( root->ascender - root->descender ) * 12 ) / 10 );
/* now compute the maximum advance width */
root->max_advance_width =
- (FT_Short)( face->type1.font_bbox.xMax );
+ (FT_Short)( root->bbox.xMax );
{
FT_Int max_advance;