Commit 16bf6da6d90113be9c58331346311cdf6e3d34e5

Tom Kacvinsky 2000-11-30T21:56:55

Fixed computation of `face->height'.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/type1/t1objs.c b/src/type1/t1objs.c
index 101e7f3..9f5851f 100644
--- a/src/type1/t1objs.c
+++ b/src/type1/t1objs.c
@@ -285,7 +285,7 @@
       root->units_per_EM = 1000;
       root->ascender     = (FT_Short)face->type1.font_bbox.yMax;
       root->descender    = (FT_Short)face->type1.font_bbox.yMin;
-      root->height       = ( ( root->ascender + root->descender ) * 12 ) / 10;
+      root->height       = ( ( root->ascender - root->descender ) * 12 ) / 10;
 
       /* now compute the maximum advance width */