mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-15 07:42:42 +00:00
While a document's composite fonts are lent, type naming a composite font the document does not define is set as in a missing font, even when the front document or the document a placed document sits in defines one of that name. A document that defines no composite font gets an empty scope too, so a document in the back, a tiled window, a thumbnail or an export made while another document is in front no longer borrows the front document's definitions. A temporary document drawn while a document draws keeps that document's fonts, and type laid out with nothing lent still uses the registered ones. - FontDb::composite_font looks only in the latest loan of the database. - lend_composite_fonts lends an empty set at the top level when the database holds composite fonts; lend_document_composite_fonts also lends one inside another loan, for placed documents, back-document measuring and threaded reflow on open. - A loan that leaves out a registered font gets its own generation, so layouts made with that font are not reused under it.