shithub: freetype+ttf2subf

Download patch

ref: 16bf6da6d90113be9c58331346311cdf6e3d34e5
parent: 21da848451facdefe0a276cdb9fdad99006e1bbe
author: Tom Kacvinsky <tom.kacvinsky@3ds.com>
date: Thu Nov 30 16:56:55 EST 2000

Fixed computation of `face->height'.

git/fs: mount .git/fs: mount/attach disallowed
--- 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 */