Skip to main content

Module fontique_012

Module fontique_012 

Source
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 .slint files import. To skip system font discovery, create the collection with system_fonts: false.
shared_collection
Returns a clone of the fontique::Collection used 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.