diff options
| author | Jason Rumney | 2007-06-02 22:11:44 +0000 |
|---|---|---|
| committer | Jason Rumney | 2007-06-02 22:11:44 +0000 |
| commit | 11e260be5b5451823dd0da023ae9922828631033 (patch) | |
| tree | 344d9d5c77c80a09839a5f81521571cfb7987537 /src | |
| parent | 12f7daf1aeed6e991fab2596a8791b33f3167a46 (diff) | |
| download | emacs-11e260be5b5451823dd0da023ae9922828631033.tar.gz emacs-11e260be5b5451823dd0da023ae9922828631033.zip | |
(x_font_min_bounds): Use FONT_AVG_WIDTH.
(w32_cache_char_metrics): Use FONT_WIDTH.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32term.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/w32term.c b/src/w32term.c index 2d3969001d8..f3fed6b8e63 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -1062,9 +1062,9 @@ w32_cache_char_metrics (font) | |||
| 1062 | { | 1062 | { |
| 1063 | /* Use the font width and height as max bounds, as not all BDF | 1063 | /* Use the font width and height as max bounds, as not all BDF |
| 1064 | fonts contain the letter 'x'. */ | 1064 | fonts contain the letter 'x'. */ |
| 1065 | font->max_bounds.width = FONT_MAX_WIDTH (font); | 1065 | font->max_bounds.width = FONT_WIDTH (font); |
| 1066 | font->max_bounds.lbearing = -font->bdf->llx; | 1066 | font->max_bounds.lbearing = -font->bdf->llx; |
| 1067 | font->max_bounds.rbearing = FONT_MAX_WIDTH (font) - font->bdf->urx; | 1067 | font->max_bounds.rbearing = FONT_WIDTH (font) - font->bdf->urx; |
| 1068 | font->max_bounds.ascent = FONT_BASE (font); | 1068 | font->max_bounds.ascent = FONT_BASE (font); |
| 1069 | font->max_bounds.descent = FONT_DESCENT (font); | 1069 | font->max_bounds.descent = FONT_DESCENT (font); |
| 1070 | } | 1070 | } |
| @@ -6544,7 +6544,7 @@ x_font_min_bounds (font, w, h) | |||
| 6544 | * average and maximum width, and maximum height. | 6544 | * average and maximum width, and maximum height. |
| 6545 | */ | 6545 | */ |
| 6546 | *h = FONT_HEIGHT (font); | 6546 | *h = FONT_HEIGHT (font); |
| 6547 | *w = FONT_WIDTH (font); | 6547 | *w = FONT_AVG_WIDTH (font); |
| 6548 | } | 6548 | } |
| 6549 | 6549 | ||
| 6550 | 6550 | ||