mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-14 22:35:26 +00:00
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.