/[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.140 by jasonr, Thu Jan 24 20:41:46 2002 UTC revision 1.141 by jasonr, Wed Feb 6 20:57:44 2002 UTC
# Line 1220  w32_native_per_char_metric (font, char2b Line 1220  w32_native_per_char_metric (font, char2b
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);

Legend:
Removed from v.1.140  
changed lines
  Added in v.1.141

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