aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32font.c
diff options
context:
space:
mode:
authorJason Rumney <[email protected]>2008-05-26 14:05:38 +0000
committerJason Rumney <[email protected]>2008-05-26 14:05:38 +0000
commited18e612384a0b228fcee1ce61b739e627e7f025 (patch)
treeaf2dde6e2d0476cf1726204036fb8b10275ab54c /src/w32font.c
parent9b06a6bdfeab9920e6ba85e6a8351f609a0a05e6 (diff)
(w32_weight_table): Remove unused variable.
(w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for backwards compatibility.
Diffstat (limited to 'src/w32font.c')
-rw-r--r--src/w32font.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/w32font.c b/src/w32font.c
index 64d48e2ed6..6639825e1a 100644
--- a/src/w32font.c
+++ b/src/w32font.c
@@ -984,7 +984,7 @@ w32_enumfont_pattern_entity (frame, logical_font, physical_font,
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 @@ w32_registry (w32_charset, font_type)
}
}
-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;