A value of nothing but underline and overline toggles (%%u%%u) has no drawn
character, and the box floored the count at one: Aligned over a span of 20
that was a box of 20 by 120 for text that draws nothing. The box is empty
when no character is drawn, for an empty value too.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
main now carries #3594 and #3622 (landed through #3692), which rewrote
clip_prim around Limits and the pieces/fill closures. The only conflict is
that block in crates/render/src/viewports.rs: main's clip_prim is kept and
its Clip::Poly fill arm gets this branch's one line, so both truncation
signals stay:
- #3594's whole() in the fill closure marks the list when the clip stops
at the room left or at its own 6,000,000-point stop;
- may_leave_out marks it when the clip region's own triangles stopped at
the fill cap (#3636).
truncated is only ever OR-ed, so neither signal clears or doubles the
other.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main (PR 3679) mirrors the box of Backwards and Upside-down text about the
point the text is placed by. This branch builds the box from a bottom and a
top instead of an offset and a height, so the mirror is applied to those
corner points.
Tests: the two helpers (ours with a vertical justification, main's with the
mirror flags) are one that takes both, and the test of the vertical
justifications also runs with each mirror.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Land #3628, #3583, #3625, #3617, #3248, #3221, #3287, #3259, #3232, #3291, #3679: Drawing Units dialog, SCALE and MOVE base points, TRIM/EXTEND Shift, mirrored hatch patterns, layout framing, deep zoom, RECTANG X/Y, Save As version, Turkish, TEXT backwards
The box took the length of the stored value, control codes included: the
%%u and %%o toggles draw nothing, %%d, %%c, %%p, %%% and %%nnn draw one
character, \U+XXXX draws one, and invisible formatting characters take no
room. So the width was over-estimated again for such text: Aligned
"%%uAB%%u" at height 1 over a span of 20 is drawn 12.5 high in a box of
6.25. The callers now pass the number of drawn characters.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
The point arm repeated require_length's check and message inline; it now
calls the helper, as the Reference length already does, so the two paths
keep one threshold and one error.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Bottom justification lifts a line by a third of the height it is drawn at.
The box used a third of its own height, which is the most the line can be
drawn at, so the box began above the bottom of the text: "I" over a span of
20 is drawn from 20 to 80 and its box began at 40. The box now runs from
where the shortest possible line would start (from the widest width the
stroke font gives the line) to where the tallest would end.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Two findings from the landing review of #3506.
Text of next to no width is left as it is by the fonts. The box applied
that cutoff with a margin, so for a height of 1e-7 and a width factor of
1e-5 it still scaled the text over its span: a box about a million units
high. It now uses the fonts' cutoff as it is.
Aligned text is scaled by span / shaped width, and the box divided by the
widest width a line can have, so narrow letters were drawn taller than
their box: "I" over a span of 20 is drawn 60 high in a box of 22. The
height now comes from the least width the stroke font gives a line.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
A test that the extents of backwards and upside-down text over two
points are the plain text's extents reflected about the first point,
as the drawn text is.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Per review: the 40 Italian rows go to a translation-only PR.
it.tsv is back to its state on main; this PR keeps only the
dialog wiring and the English keys.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keeps both sides in text_box (main's fitted height and rotation, this
branch's mirroring) and sets the two flags on the Text literals main
has added since.
Co-Authored-By: Claude Fable 5.2 <[email protected]>