diff src/w32font.c @ 95315:3d4da4481f75

(w32_weight_table): Remove unused variable. (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for backwards compatibility.
author Jason Rumney <jasonr@gnu.org>
date Mon, 26 May 2008 14:05:38 +0000
parents 525a75a42888
children 48f990d65758
line wrap: on
line diff
--- a/src/w32font.c	Mon May 26 12:08:23 2008 +0000
+++ b/src/w32font.c	Mon May 26 14:05:38 2008 +0000
@@ -984,7 +984,7 @@
   if (physical_font->ntmTm.tmPitchAndFamily & 0x01)
     ASET (entity, FONT_SPACING_INDEX, make_number (FONT_SPACING_PROPORTIONAL));
   else
-    ASET (entity, FONT_SPACING_INDEX, make_number (FONT_SPACING_MONO));
+    ASET (entity, FONT_SPACING_INDEX, make_number (FONT_SPACING_CHARCELL));
 
   if (requested_font->lfQuality != DEFAULT_QUALITY)
     {
@@ -1390,21 +1390,6 @@
     }
 }
 
-static struct
-{
-  unsigned w32_numeric;
-  unsigned numeric;
-} w32_weight_table[] =
-  { { FW_THIN, 0 },
-    { FW_EXTRALIGHT, 40 },
-    { FW_LIGHT, 50},
-    { FW_NORMAL, 100},
-    { FW_MEDIUM, 100},
-    { FW_SEMIBOLD, 180},
-    { FW_BOLD, 200},
-    { FW_EXTRABOLD, 205},
-    { FW_HEAVY, 210} };
-
 static int
 w32_decode_weight (fnweight)
      int fnweight;