mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
![]() Our demos use some symbols such as the back arrow and the ugly style uses a down arrow for the combo box. These symbols are not in Roboto and also not in the default font font_kit gives us on macOS. Therefore for WASM we switch over to DejaVu, which is bigger than Roboto. For macOS this patch implements rudimentary fallback list generation using CTFontCopyDefaultCascadeListForLanguages. This needs further work to respect the locale and correctly translate styles - eventually this should go into font-kit. A general aspect with the font fallback handling is that femtovg doesn't support on-demand loading yet. Instead it uses owned_ttf_parser, so every font will be read entirely off disk. That's why for macOS we trim the list. We could perhaps do the analysis ourselves. Linux and Windows are to follow. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |