1238 |
|
|
1239 |
if (retval) |
if (retval) |
1240 |
{ |
{ |
1241 |
|
#if 0 |
1242 |
|
/* Disabled until we can find a way to get the right results |
1243 |
|
on all versions of Windows. */ |
1244 |
|
|
1245 |
/* Don't trust the ABC widths. For synthesized fonts they are |
/* Don't trust the ABC widths. For synthesized fonts they are |
1246 |
wrong, and so is the result of GetCharWidth()! */ |
wrong, and so is the result of GetCharWidth()! */ |
1247 |
int real_width; |
int real_width; |
1248 |
GetCharWidth (hdc, *char2b, *char2b, &real_width); |
GetCharWidth (hdc, *char2b, *char2b, &real_width); |
1249 |
|
#endif |
1250 |
pcm->width = char_widths.abcA + char_widths.abcB + char_widths.abcC; |
pcm->width = char_widths.abcA + char_widths.abcB + char_widths.abcC; |
1251 |
|
#if 0 |
1252 |
/* 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 |
1253 |
ExtTextOut will do with the broken font. */ |
ExtTextOut will do with the broken font. */ |
1254 |
if (pcm->width != real_width) |
if (pcm->width != real_width) |
1255 |
pcm->width = (pcm->width + real_width) / 2; |
pcm->width = (pcm->width + real_width) / 2; |
1256 |
|
#endif |
1257 |
pcm->lbearing = char_widths.abcA; |
pcm->lbearing = char_widths.abcA; |
1258 |
pcm->rbearing = pcm->width - char_widths.abcC; |
pcm->rbearing = pcm->width - char_widths.abcC; |
1259 |
pcm->ascent = FONT_BASE (font); |
pcm->ascent = FONT_BASE (font); |