Commit 0e9becce authored by Miles Bader's avatar Miles Bader
Browse files

(VCENTER_BASELINE_OFFSET): Bias the division by two, so that when a font

can't be exactly centered, it errs up rather than down.
parent 8ec118cd
......@@ -1777,7 +1777,7 @@ x_produce_stretch_glyph (it)
#define VCENTER_BASELINE_OFFSET(FONT, F) \
((FONT)->descent \
+ (FRAME_LINE_HEIGHT ((F)) - FONT_HEIGHT ((FONT))) / 2 \
+ (FRAME_LINE_HEIGHT ((F)) + 1 - FONT_HEIGHT ((FONT))) / 2 \
- ((F)->output_data.x->font->descent - (F)->output_data.x->baseline_offset))
/* 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