FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
i18n test: leave installed right-to-left faces out of the Japanese check
FredAppse2da60722eb4
diff --git a/crates/ui-egui/src/i18n/mod.rs b/crates/ui-egui/src/i18n/mod.rsindex 50faf93a8..1e2d09ba6 100644--- a/crates/ui-egui/src/i18n/mod.rs+++ b/crates/ui-egui/src/i18n/mod.rs@@ -1382,9 +1382,11 @@ mod tests {output.textures_delta.clear();ctx.fonts_mut(|fonts| {// every theme family falls back to the craft-fonts (when built with them; no system- // font is added then) or to the system Japanese font+ // font is added then) or to the system Japanese font. Installed right-to-left faces+ // (`rtl::install`) come after every other fallback by design, so they are left out.for family in crate::theme::font_families() {- let stack = fonts.definitions().families.get(&family).cloned().unwrap_or_default();+ let mut stack = fonts.definitions().families.get(&family).cloned().unwrap_or_default();+ stack.retain(|n| !crate::rtl::is_system_face(n));if craft {assert!(stack.last().is_some_and(|n| n.starts_with("craft:")), "{family:?}: {stack:?}");assert!(!stack.iter().any(|n| n == JAPANESE_FONT), "{family:?}: {stack:?}");