shithub: freetype+ttf2subf

Download patch

ref: 42022c8c94f857d9e5e8d11861fd951890e022cf
parent: 8925009f79bd047054b05de9c5fba1d9dbb739b5
author: David Turner <[email protected]>
date: Tue Sep 26 21:01:10 EDT 2000

fixed a bug in the Type 1 and CID font drivers:

  the value of the descent returned was positive,
  instead of being negative..

git/fs: mount .git/fs: mount/attach disallowed
--- a/include/freetype/ftsynth.h
+++ b/include/freetype/ftsynth.h
@@ -16,6 +16,22 @@
 /*                                                                         */
 /***************************************************************************/
 
+ /**************************************************************************/
+ /**************************************************************************/
+ /**************************************************************************/
+ /**************************************************************************/
+ /**************************************************************************/
+ /*********                                                       **********/
+ /*********                                                       **********/
+ /*********        WARNING, THIS IS ALPHA CODE, THIS API          **********/
+ /*********    IS DUE TO CHANGE UNTIL STRICTLY NOTIFIED BY THE    **********/
+ /*********            FREETYPE DEVELOPMENT TEAM                  **********/
+ /*********                                                       **********/
+ /**************************************************************************/
+ /**************************************************************************/
+ /**************************************************************************/
+ /**************************************************************************/
+ /**************************************************************************/
 
 #ifndef FTSYNTH_H
 #define FTSYNTH_H
--- a/src/cid/cidobjs.c
+++ b/src/cid/cidobjs.c
@@ -236,7 +236,7 @@
         root->bbox         = face->cid.font_bbox;
         root->units_per_EM = 1000;
         root->ascender     =  (FT_Short)face->cid.font_bbox.yMax;
-        root->descender    = -(FT_Short)face->cid.font_bbox.yMin;
+        root->descender    =  (FT_Short)face->cid.font_bbox.yMin;
         root->height       = ( ( root->ascender + root->descender ) * 12 )
                              / 10;
 
--- a/src/type1z/z1objs.c
+++ b/src/type1z/z1objs.c
@@ -265,7 +265,7 @@
       root->bbox         = face->type1.font_bbox;
       root->units_per_EM = 1000;
       root->ascender     =  (FT_Short)face->type1.font_bbox.yMax;
-      root->descender    = -(FT_Short)face->type1.font_bbox.yMin;
+      root->descender    =  (FT_Short)face->type1.font_bbox.yMin;
       root->height       = ( ( root->ascender + root->descender ) * 12 ) / 10;
 
       /* now compute the maximum advance width */