Refactor font loading

This commit is contained in:
meehl committed 2025-10-30 13:10:42 +01:00
1 parent fff5aa8596
commit 43b20ecd0d
5 files changed
+111 -52

No files matched your search

+2 -1
View File
@@ -9,6 +9,7 @@ use crate::{
};
use anyhow::bail;
use flate2::read::GzDecoder;
use parley::{FontFamily, GenericFamily};
use regex::Regex;
use std::time::{Duration, SystemTime, UNIX_EPOCH};
use std::{
@@ -114,7 +115,7 @@ impl InstallMode {
app_state: &mut AppState,
) -> Box<dyn Iterator<Item = ClippedPrimitive>> {
let mut job = LayoutJob::new(
parley::GenericFamily::SansSerif,
FontFamily::Generic(GenericFamily::SansSerif),
32.0,
34.0,
Some(Alignment::Center),