mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-10 03:01:33 +00:00
The regression test for rebuilding fitted area type after a scale change used text that overflowed at the minimum size both before and after the change, so both layouts used the same fit scale and the pixel comparison did not depend on the fit. The fixture is now 2 pt type in a small frame, drawn 20 times zoomed in. It fits at 0.7 of its size, and at 0.733 after a 1.5 times scale. The test asserts that the two fit scales differ and that the words set at the earlier fit draw different pixels, and keeps the comparison with a fresh renderer and the check that the geometry is not reused.