diff options
| author | eunhhu <[email protected]> | 2026-09-28 15:52:35 +0100 |
|---|---|---|
| committer | eunhhu <[email protected]> | 2026-09-28 15:52:35 +0100 |
| commit | 0b554f2ea62a921e1c8a43ffb24ad75f428af2d6 (patch) | |
| tree | 4854bcd4256387a2bb5daa190d94dce24a130ecc /text/shape.c | |
| parent | a4ca275ad1b5edc15474407e2852f8fe9abaac4e (diff) | |
| download | vega-0b554f2ea62a921e1c8a43ffb24ad75f428af2d6.tar.gz vega-0b554f2ea62a921e1c8a43ffb24ad75f428af2d6.zip | |
Set type on the pixel surfaces: the grid lays out, the fonts shape
vega_draw keeps what it wrote as spans (VegaSpan: a row, the columns it
was given, where its cells reached, its text and tone). A span written
where the same pen stopped follows the one before it (a field's name and
value, the help line, the prompt); one written after the pen moved (a
table's column, a list's label, a badge) starts afresh at its column, and
a badge sits flush with its end.
When the first font shapes, the pixels set type: a span and those
following it are one line of text, laid out as one paragraph in the font
stack (bidi and kerning cross the spans; each glyph takes the tone of the
span its character came from), from its column up to the nearest of its
spans' ends and the next span on the row, cut at a grapheme cluster
boundary with an ellipsis if it must be. The prompt gets a text cursor.
--symbols repeats: fonts in order of preference (at most 8); the cells,
when the first font does not shape, also fall back through them.
The check sets a label in one script, alone in its list, and holds it to
what the font that has it sets by itself (vega-symbols paragraph, which
now sizes itself to its text with width 0), pixel for pixel: Latin
kerning, Hangul, Arabic and Devanagari over DejaVu Sans, Noto Sans CJK KR
and FreeSans.
Diffstat (limited to 'text/shape.c')
0 files changed, 0 insertions, 0 deletions
