Commit 3090a5a5 authored by Jason Rumney's avatar Jason Rumney

(VCENTER_BASELINE_OFFSET): Bias division (see xterm.c comment below).

parent d98c0337
2000-10-23 Jason Rumney <jasonr@gnu.org>
* fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
ASCII font of default fontset on Windows.
* w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
xterm.c comment below).
* w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
2000-10-23 Gerd Moellmann <gerd@gnu.org>
* xterm.c (x_connection_closed): Reset handling_signal.
......
......@@ -1915,7 +1915,7 @@ x_produce_stretch_glyph (it)
#define VCENTER_BASELINE_OFFSET(FONT, F) \
(FONT_DESCENT (FONT) \
+ (FRAME_LINE_HEIGHT ((F)) - FONT_HEIGHT ((FONT))) / 2 \
+ (FRAME_LINE_HEIGHT ((F)) + 1 - FONT_HEIGHT ((FONT))) / 2 \
- (FONT_DESCENT (FRAME_FONT (F)) - FRAME_BASELINE_OFFSET (F)))
/* Produce glyphs/get display metrics for the display element IT is
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment