Gerald Pfeifer : sfnt2fnt: Remove variable descent which is not really used from fill_fontinfo.

Alexandre Julliard julliard at winehq.org
Mon Apr 26 13:59:25 CDT 2010


Module: wine
Branch: master
Commit: 0151175127abe24ec26988ad4cdb70b602ba7a8f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0151175127abe24ec26988ad4cdb70b602ba7a8f

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Sat Apr 24 12:32:44 2010 +0200

sfnt2fnt: Remove variable descent which is not really used from fill_fontinfo.

---

 tools/sfnt2fnt.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/tools/sfnt2fnt.c b/tools/sfnt2fnt.c
index 3b6cafc..f58c40b 100644
--- a/tools/sfnt2fnt.c
+++ b/tools/sfnt2fnt.c
@@ -365,7 +365,7 @@ static struct fontinfo *fill_fontinfo( const char *face_name, int ppem, int enc,
                                        unsigned char def_char, int avg_width )
 {
     FT_Face face;
-    int ascent = 0, il, el, descent = 0, width_bytes = 0, space_size, max_width = 0;
+    int ascent = 0, il, el, width_bytes = 0, space_size, max_width = 0;
     BYTE left_byte, right_byte, byte;
     DWORD start;
     int i, x, y, x_off, x_end, first_char;
@@ -413,7 +413,6 @@ static struct fontinfo *fill_fontinfo( const char *face_name, int ppem, int enc,
             if(size_table->hori.ascender - size_table->hori.descender == ppem)
             {
                 ascent = size_table->hori.ascender;
-                descent = -size_table->hori.descender;
                 break;
             }
             size_table++;
@@ -431,7 +430,6 @@ static struct fontinfo *fill_fontinfo( const char *face_name, int ppem, int enc,
         if(FT_Load_Char(face, 0xc5, FT_LOAD_DEFAULT))
             error("Can't find Aring\n");
         ascent = face->glyph->metrics.horiBearingY >> 6;
-        descent = ppem - ascent;
     }
 
     start = sizeof(FNT_HEADER);




More information about the wine-cvs mailing list