shithub: freetype+ttf2subf

Download patch

ref: 9914b97af2b59636273bf83a9bc8117dfed31fa1
parent: 84c60bba1885547ff4c7139d908f9e592cf94054
author: Werner Lemberg <[email protected]>
date: Fri Jan 2 11:33:04 EST 2004

* docs/CHANGES: Updated.

* src/winfonts/winfnt.c (FNT_Size_Set_Pixels): Fix sign of
size->metrics.descender.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2004-01-01  Werner Lemberg  <[email protected]>
+
+	* docs/CHANGES: Updated.
+
+2004-01-01  Michael Jansson  <[email protected]>
+
+	* src/winfonts/winfnt.c (FNT_Size_Set_Pixels): Fix sign of
+	size->metrics.descender.
+
 2003-12-31  Wolfgang Domr�se  <[email protected]>
 
 	* src/cff/cffgload.c (cff_decoder_parse_charstrings)
--- a/docs/CHANGES
+++ b/docs/CHANGES
@@ -24,6 +24,9 @@
       but one encoding.  Use  the new FT_WinFNT_ID_XXX values together
       with FT_Get_WinFNT_Header() to get the WinFNT charset ID.
 
+    - The descender metrics (face->size->metrics.descender) for WinFNT
+      bitmap fonts had the wrong sign.
+
 
   II. IMPORTANT CHANGES
 
--- a/src/winfonts/winfnt.c
+++ b/src/winfonts/winfnt.c
@@ -543,8 +543,8 @@
 
 
       size->metrics.ascender    = font->header.ascent * 64;
-      size->metrics.descender   = ( font->header.pixel_height -
-                                      font->header.ascent ) * 64;
+      size->metrics.descender   = -( font->header.pixel_height -
+                                       font->header.ascent ) * 64;
       size->metrics.height      = font->header.pixel_height * 64;
       size->metrics.max_advance = font->header.max_width * 64;