Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
11e260be
Commit
11e260be
authored
Jun 02, 2007
by
Jason Rumney
Browse files
(x_font_min_bounds): Use FONT_AVG_WIDTH.
(w32_cache_char_metrics): Use FONT_WIDTH.
parent
12f7daf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/w32term.c
src/w32term.c
+3
-3
No files found.
src/w32term.c
View file @
11e260be
...
...
@@ -1062,9 +1062,9 @@ w32_cache_char_metrics (font)
{
/* Use the font width and height as max bounds, as not all BDF
fonts contain the letter 'x'. */
font->max_bounds.width = FONT_
MAX_
WIDTH (font);
font->max_bounds.width = FONT_WIDTH (font);
font->max_bounds.lbearing = -font->bdf->llx;
font->max_bounds.rbearing = FONT_
MAX_
WIDTH (font) - font->bdf->urx;
font->max_bounds.rbearing = FONT_WIDTH (font) - font->bdf->urx;
font->max_bounds.ascent = FONT_BASE (font);
font->max_bounds.descent = FONT_DESCENT (font);
}
...
...
@@ -6544,7 +6544,7 @@ x_font_min_bounds (font, w, h)
* average and maximum width, and maximum height.
*/
*h = FONT_HEIGHT (font);
*w = FONT_WIDTH (font);
*w = FONT_
AVG_
WIDTH (font);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment