mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 22:01:13 +00:00
![]() The database is not empty, as the changed expect() suggests, but instead it just means that the family could not be found. This can happen for example with something like this: export App := Window { Text { text: "Ok"; font-family: "Non-existent"; } } or it can also happen when loading the printer demo in the online editor, where a custom font is supposed to be available but that's not implemented for wasm builds. So instead of panicing, fall back to querying for a last-resort sans-serif family. For Linux, we register fontconfig's choice for sans-serif, otherwise fontdb has defaults for macOS and Windows, and for wasm we register our copy of DejaVu. So that cannot really fail.... |
||
---|---|---|
.. | ||
fonts | ||
Cargo.toml | ||
event_loop.rs | ||
fonts.rs | ||
graphics_window.rs | ||
images.rs | ||
lib.rs | ||
svg.rs |