Don't register any fonts by default for vizia

These now need to be registered individually by the plugin. This saves
on binary size.
This commit is contained in:
Robbert van der Helm
2022-11-06 13:48:12 +01:00
parent 89c2b1f84e
commit 6f7780bdeb
7 changed files with 70 additions and 16 deletions

View File

@@ -33,6 +33,9 @@ pub(crate) fn create(
editor_state: Arc<ViziaState>,
) -> Option<Box<dyn Editor>> {
create_vizia_editor(editor_state, ViziaTheming::Custom, move |cx, _| {
assets::register_noto_sans_light(cx);
assets::register_noto_sans_thin(cx);
cx.add_theme(STYLE);
Data {