Skip to content

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

Integration: close typo_ascent in fontdb.rs after the IDML interchange merge

aionggc01950280635
diff --git a/crates/fonts/src/fontdb.rs b/crates/fonts/src/fontdb.rs
index a06df8d24..34e419b03 100644
--- a/crates/fonts/src/fontdb.rs
+++ b/crates/fonts/src/fontdb.rs
@@ -806,6 +806,8 @@ fn typo_ascent(f: &skrifa::FontRef<'_>, location: &Location, upem: f64) -> Optio
v += mvar.metric_delta(skrifa::raw::tables::mvar::tags::HASC, location.coords()).map_or(0.0, |d| d.to_f64());
}
plausible(Some(v), upem)
+}
+
/// `family` without what layout apps add to a family name, if it has any: InDesign's `$ID/`
/// prefix (`$ID/Arial` → `Arial`) and the font-format suffix appended when a family is installed
/// in several formats (`Minion Pro (OTF)` → `Minion Pro`).