mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-15 08:45:25 +00:00
A right-to-left line draws its last character before its tabs. When that character loses its Japanese-Latin space at the line's end, the layout drew it narrower before placing the tabs, but measured the line with the full advance and took the trim off afterwards. The measured line was narrower than the drawn one by the trim: a right-aligned line ended past the frame's right edge (305 pt in a 300 pt frame), and a line that did not fit as drawn was kept whole. drawn_width now takes the end trim off the glyph it belongs to, so the tabs drawn after it take their stops from where it ends, both where lines break and where a line is measured for alignment.