diff options
| author | Jason Rumney | 2002-02-06 20:57:44 +0000 |
|---|---|---|
| committer | Jason Rumney | 2002-02-06 20:57:44 +0000 |
| commit | f6dd0c50c3b2d4d553ddcdeb5717f11c6e962c67 (patch) | |
| tree | 978914ad6a3fc7bed5eae470d56b41560eb46fa4 /src | |
| parent | b5309828028d3d0f1fb8a833f7b0333b3a93e966 (diff) | |
| download | emacs-f6dd0c50c3b2d4d553ddcdeb5717f11c6e962c67.tar.gz emacs-f6dd0c50c3b2d4d553ddcdeb5717f11c6e962c67.zip | |
(w32_native_per_char_metric): Disable 2002-01-20 change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32term.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/w32term.c b/src/w32term.c index 119e77b2a73..4aa221e7c34 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -1220,18 +1220,22 @@ w32_native_per_char_metric (font, char2b, font_type, pcm) | |||
| 1220 | 1220 | ||
| 1221 | if (retval) | 1221 | if (retval) |
| 1222 | { | 1222 | { |
| 1223 | #if 0 | ||
| 1224 | /* Disabled until we can find a way to get the right results | ||
| 1225 | on all versions of Windows. */ | ||
| 1226 | |||
| 1223 | /* Don't trust the ABC widths. For synthesized fonts they are | 1227 | /* Don't trust the ABC widths. For synthesized fonts they are |
| 1224 | wrong, and so is the result of GetCharWidth()! */ | 1228 | wrong, and so is the result of GetCharWidth()! */ |
| 1225 | int real_width; | 1229 | int real_width; |
| 1226 | GetCharWidth (hdc, *char2b, *char2b, &real_width); | 1230 | GetCharWidth (hdc, *char2b, *char2b, &real_width); |
| 1227 | 1231 | #endif | |
| 1228 | pcm->width = char_widths.abcA + char_widths.abcB + char_widths.abcC; | 1232 | pcm->width = char_widths.abcA + char_widths.abcB + char_widths.abcC; |
| 1229 | 1233 | #if 0 | |
| 1230 | /* As far as I can tell, this is the best way to determine what | 1234 | /* As far as I can tell, this is the best way to determine what |
| 1231 | ExtTextOut will do with the broken font. */ | 1235 | ExtTextOut will do with the broken font. */ |
| 1232 | if (pcm->width != real_width) | 1236 | if (pcm->width != real_width) |
| 1233 | pcm->width = (pcm->width + real_width) / 2; | 1237 | pcm->width = (pcm->width + real_width) / 2; |
| 1234 | 1238 | #endif | |
| 1235 | pcm->lbearing = char_widths.abcA; | 1239 | pcm->lbearing = char_widths.abcA; |
| 1236 | pcm->rbearing = char_widths.abcA + char_widths.abcB; | 1240 | pcm->rbearing = char_widths.abcA + char_widths.abcB; |
| 1237 | pcm->ascent = FONT_BASE (font); | 1241 | pcm->ascent = FONT_BASE (font); |