aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2008-05-26 14:05:38 +0000
committerJason Rumney2008-05-26 14:05:38 +0000
commited18e612384a0b228fcee1ce61b739e627e7f025 (patch)
treeaf2dde6e2d0476cf1726204036fb8b10275ab54c /src
parent9b06a6bdfeab9920e6ba85e6a8351f609a0a05e6 (diff)
downloademacs-ed18e612384a0b228fcee1ce61b739e627e7f025.tar.gz
emacs-ed18e612384a0b228fcee1ce61b739e627e7f025.zip
(w32_weight_table): Remove unused variable.
(w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for backwards compatibility.
Diffstat (limited to 'src')
-rw-r--r--src/w32font.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/w32font.c b/src/w32font.c
index 64d48e2ed63..6639825e1af 100644
--- a/src/w32font.c
+++ b/src/w32font.c
@@ -984,7 +984,7 @@ w32_enumfont_pattern_entity (frame, logical_font, physical_font,
984 if (physical_font->ntmTm.tmPitchAndFamily & 0x01) 984 if (physical_font->ntmTm.tmPitchAndFamily & 0x01)
985 ASET (entity, FONT_SPACING_INDEX, make_number (FONT_SPACING_PROPORTIONAL)); 985 ASET (entity, FONT_SPACING_INDEX, make_number (FONT_SPACING_PROPORTIONAL));
986 else 986 else
987 ASET (entity, FONT_SPACING_INDEX, make_number (FONT_SPACING_MONO)); 987 ASET (entity, FONT_SPACING_INDEX, make_number (FONT_SPACING_CHARCELL));
988 988
989 if (requested_font->lfQuality != DEFAULT_QUALITY) 989 if (requested_font->lfQuality != DEFAULT_QUALITY)
990 { 990 {
@@ -1390,21 +1390,6 @@ w32_registry (w32_charset, font_type)
1390 } 1390 }
1391} 1391}
1392 1392
1393static struct
1394{
1395 unsigned w32_numeric;
1396 unsigned numeric;
1397} w32_weight_table[] =
1398 { { FW_THIN, 0 },
1399 { FW_EXTRALIGHT, 40 },
1400 { FW_LIGHT, 50},
1401 { FW_NORMAL, 100},
1402 { FW_MEDIUM, 100},
1403 { FW_SEMIBOLD, 180},
1404 { FW_BOLD, 200},
1405 { FW_EXTRABOLD, 205},
1406 { FW_HEAVY, 210} };
1407
1408static int 1393static int
1409w32_decode_weight (fnweight) 1394w32_decode_weight (fnweight)
1410 int fnweight; 1395 int fnweight;