Available on crate feature
unstable-fontique-012 only.Expand description
Fontique 0.12 specific types and re-exports.
Note: This module is behind a feature flag and may be removed or changed in future minor releases, as new major Fontique releases become available.
Use the types, functions, and re-exports in this module to register custom fonts at run-time for use by Slint’s renderers.
Re-exports§
pub use i_slint_common::sharedfontique::fontique;
Functions§
- set_
shared_ collection - Sets the font collection used for text rendering in the current thread’s context.
Slint uses your collection as is and adds the fonts that
.slintfiles import. To skip system font discovery, create the collection withsystem_fonts: false. - shared_
collection - Returns a clone of the
fontique::Collectionused for text rendering in the current thread’s context. It uses shared storage, so Slint sees the fonts you register and the fallbacks you configure.