1220 |
|
|
1221 |
if (retval) |
if (retval) |
1222 |
{ |
{ |
1223 |
|
#if 0 |
1224 |
|
/* Disabled until we can find a way to get the right results |
1225 |
|
on all versions of Windows. */ |
1226 |
|
|
1227 |
/* Don't trust the ABC widths. For synthesized fonts they are |
/* Don't trust the ABC widths. For synthesized fonts they are |
1228 |
wrong, and so is the result of GetCharWidth()! */ |
wrong, and so is the result of GetCharWidth()! */ |
1229 |
int real_width; |
int real_width; |
1230 |
GetCharWidth (hdc, *char2b, *char2b, &real_width); |
GetCharWidth (hdc, *char2b, *char2b, &real_width); |
1231 |
|
#endif |
1232 |
pcm->width = char_widths.abcA + char_widths.abcB + char_widths.abcC; |
pcm->width = char_widths.abcA + char_widths.abcB + char_widths.abcC; |
1233 |
|
#if 0 |
1234 |
/* As far as I can tell, this is the best way to determine what |
/* As far as I can tell, this is the best way to determine what |
1235 |
ExtTextOut will do with the broken font. */ |
ExtTextOut will do with the broken font. */ |
1236 |
if (pcm->width != real_width) |
if (pcm->width != real_width) |
1237 |
pcm->width = (pcm->width + real_width) / 2; |
pcm->width = (pcm->width + real_width) / 2; |
1238 |
|
#endif |
1239 |
pcm->lbearing = char_widths.abcA; |
pcm->lbearing = char_widths.abcA; |
1240 |
pcm->rbearing = char_widths.abcA + char_widths.abcB; |
pcm->rbearing = char_widths.abcA + char_widths.abcB; |
1241 |
pcm->ascent = FONT_BASE (font); |
pcm->ascent = FONT_BASE (font); |