mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-07 13:23:22 +00:00
A new test binary opens a document of 13 type objects with the plans a font face keeps and again while every shaped segment makes its own plan. The document, its cached bounds and baselines included, and the first frame's pixels must be the same. `test_fonts::keep_shape_plans` switches the plans off; it exists only in tests and with the `test-fonts` feature. The engine's open test now builds objects of one script and direction that differ in kerning and language, and lays each one out in a font database of its own, so a plan used for the wrong features fails its comparison. It no longer sets Arabic, which could fall back to a system font in one database and not the other.