mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-30 21:26:48 -06:00
A line clears a Jump Object wrap with its leading box, [baseline - leading, baseline]. It stays above the object while its baseline is at or above the wrap top, so its descenders may hang into the wrap. The next line moves down by whole leadings from the line above, after any space before or after, until its leading box clears the wrap bottom. A line that would start a column under an object starts as if the frame top were the wrap bottom (the frame's first baseline offset below it). Wrap offsets, negative ones included, set the wrap's edges. Other wraps that leave no usable slot, such as a full-width bounding box, push the line so its top lands exactly on the wrap bottom: the search jumps from one exclusion bottom edge to the next. Lines aligned to the baseline grid snap to the next grid line after a push and are re-checked, so they stay on the grid. The breaker's slot estimate uses the same rules.