feat: configurable primary_font

This commit is contained in:
galister
2024-04-14 18:16:26 +09:00
parent 7184a9f21f
commit 42aef89822
3 changed files with 16 additions and 6 deletions

View File

@@ -56,9 +56,11 @@ impl AppState {
shaders.insert("frag_srgb", shader);
}
let session = AppSession::load();
Ok(AppState {
fc: FontCache::new()?,
session: AppSession::load(),
fc: FontCache::new(session.config.primary_font.clone())?,
session,
tasks: TaskContainer::new(),
graphics,
input_state: InputState::new(),