# HG changeset patch # User Jason Rumney # Date 1013029064 0 # Node ID 49ffe8f5efb6df8c0847adf6924b8898a7232fd8 # Parent 977693cfea39c2be1894f37378de5f974ed3ad6c (w32_native_per_char_metric): Disable 2002-01-20 change. diff -r 977693cfea39 -r 49ffe8f5efb6 src/w32term.c --- a/src/w32term.c Wed Feb 06 20:02:54 2002 +0000 +++ b/src/w32term.c Wed Feb 06 20:57:44 2002 +0000 @@ -1220,18 +1220,22 @@ if (retval) { +#if 0 + /* Disabled until we can find a way to get the right results + on all versions of Windows. */ + /* Don't trust the ABC widths. For synthesized fonts they are wrong, and so is the result of GetCharWidth()! */ int real_width; GetCharWidth (hdc, *char2b, *char2b, &real_width); - +#endif pcm->width = char_widths.abcA + char_widths.abcB + char_widths.abcC; - +#if 0 /* As far as I can tell, this is the best way to determine what ExtTextOut will do with the broken font. */ if (pcm->width != real_width) pcm->width = (pcm->width + real_width) / 2; - +#endif pcm->lbearing = char_widths.abcA; pcm->rbearing = char_widths.abcA + char_widths.abcB; pcm->ascent = FONT_BASE (font);