Skip to main content

WORDS_BASELINE

Constant WORDS_BASELINE 

Source
pub const WORDS_BASELINE: f32 = 0.026;
Expand description

How far a button’s words, a capital’s height in their middle (Paint::Text’s span_centred), stand over the baseline of words of 13 pt in the middle of the same row, in the terminal’s lines: their 90 per cent puts it a pixel higher, 0.9 px of a line of 36. A button in a row of words goes down this far with its words (Grid::beside_words), so they stand on the row’s baseline: “Reject” rode 3 px over the hunk’s heading beside it.