Mercurial > emacs
changeset 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 | 325b3c8ac762 |
children | 04b3b749e596 |
files | src/w32font.c |
diffstat | 1 files changed, 1 insertions(+), 16 deletions(-) [+] |
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;