/[emacs]/emacs/src/w32term.c
ViewVC logotype

Diff of /emacs/src/w32term.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.109.4.11 by kfstorm, Fri Feb 1 21:13:59 2002 UTC revision 1.109.4.12 by jasonr, Wed Feb 6 20:59:03 2002 UTC
# Line 1238  w32_native_per_char_metric (font, char2b Line 1238  w32_native_per_char_metric (font, char2b
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);

Legend:
Removed from v.1.109.4.11  
changed lines
  Added in v.1.109.4.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26