What I want to achieve
Align the first line of a multi-line section head on the grid and consecutive lines according to the baseline distance given in the font definition. The baseline distance of the font used for the section heads does not match the grid distance.
What I have so far
If a section head consists of only one line, then grid=high
does what I
expect; the first (in fact, the only line) is aligned on the grid. However,
when the head consists of more than one line, the last line is always aligned
on the grid, instead of the first.
Available documentation
The Details manual
lists several values for grid
and quite some documentation. But all examples
are single-line heads, unfortunately.
The code
\setuplayout [grid=yes]
\definefont [BigFont] [Bold at 20pt] [24pt]
\setuphead [section] [style=\BigFont, grid=high, before={\blank[4*line]}]
\showgrid
\starttext
\startsection [title=Lorem ipsum dolor]
\input ward
\stopsection
\startsection [title=Lorem ipsum dolor sit amet consectetur adipisicing elit]
\input ward
\stopsection
% Demonstration what I'd like to achieve
\blank [4*line]
\startlinecorrection
\BigFont\raisebox5pt\vbox\bgroup
3 Lorem ipsum dolor sit amet consectetur\crlf
\null\kern20pt adipisicing elit\egroup
\stoplinecorrection
\input ward
\stoptext
The first single-line head is fine. The second is the wrong multi-line head that wants to be corrected; and the third one is a hack to show how it should look like.