Files
designcraft/crates/compose
dotCooCoo 7ea1dff1f8 Compose: vertical justification in a shaped frame finds a band shorter than one scan step
In a shaped frame, Center, Bottom and Justify searched for the room the
text can take in at most 512 even steps, so a band that the lines fit in
over less room than one step could be missed, and the text then stayed
higher than it could sit. In a frame with more than 512 pt of room one
step is more than 1 pt.

The search now also tries the room at which a moved line's band reaches
one of the outline's corner heights, and a room on each side of each of
those. When there are more than 256 such breaks (a curved outline with
many corners), the search keeps the even steps alone.
2026-11-12 18:38:14 -08:00
..