Skip to content

DesignCraft: An open-source page and layout design editor written by scratch in pure Rust

Merge remote-tracking branch 'origin/main' into svg-installed-fonts

Fabio Lussiaa3220bc99db
diff --cc crates/fonts/src/fontdb.rs
index 1a400e9fe,bbe08af09..edff8f610
--- a/crates/fonts/src/fontdb.rs
+++ b/crates/fonts/src/fontdb.rs
@@@ -121,8 -121,8 +121,10 @@@ pub struct FontFace
em: std::sync::OnceLock<(f64, f64)>,
/// The font menu group and native family name, read on first use.
group: std::sync::OnceLock<(FontGroup, Option<String>)>,
+ /// The PostScript name, read on first use.
+ postscript: std::sync::OnceLock<Option<String>>,
+ /// Format, class and PANOSE numbers (the font menus), read on first use.
+ kind: std::sync::OnceLock<crate::kind::FaceKind>,
}
/// A cheap `Copy` handle to a face. Faces are never unloaded, so the handle lives for the rest of
@@@ -721,7 -760,7 +772,8 @@@ fn make_face(bytes: FontBytes, source:
bmp: std::sync::OnceLock::new(),
em: std::sync::OnceLock::new(),
group: std::sync::OnceLock::new(),
+ postscript: std::sync::OnceLock::new(),
+ kind: std::sync::OnceLock::new(),
})
}