Skip to content

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

Merge PR #548

Brandon Thomas3921c71e65c7
diff --cc crates/fonts/src/fontdb.rs
index e108928dc,edff8f610..8e43f74b1
--- a/crates/fonts/src/fontdb.rs
+++ b/crates/fonts/src/fontdb.rs
@@@ -122,9 -118,11 +122,11 @@@ pub struct FontFace
/// Basic Multilingual Plane coverage bitset, built on first use.
bmp: std::sync::OnceLock<Box<[u64]>>,
/// The ideographic em box, read on first use.
- em: std::sync::OnceLock<(f64, f64)>,
+ em: std::sync::OnceLock<((f64, f64), bool)>,
/// 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>,
}