aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/w32term.c10
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);