From e4585fb2b34234e7a5f4b58ee0db1f744e500048 Mon Sep 17 00:00:00 2001 From: supersfera Date: Sat, 21 Nov 2026 20:23:02 -0800 Subject: [PATCH] ru: update language-script test for Cyrillic --- crates/ui-egui/src/fonts.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/fonts.rs b/crates/ui-egui/src/fonts.rs index b31b423a..5a5eb801 100644 --- a/crates/ui-egui/src/fonts.rs +++ b/crates/ui-egui/src/fonts.rs @@ -279,8 +279,9 @@ mod tests { assert_eq!(Script::of_language("ar"), Some(Script::Arabic)); assert_eq!(Script::of_language("de"), None); for l in &crate::i18n::LANGUAGES { - // Past the Latin blocks and their diacritics. - let other_script = l.name.chars().any(|c| c > '\u{036F}'); + // Past the Latin blocks and their diacritics. Cyrillic is already in the + // interface font (Inter / Ubuntu-Light), so Russian needs no fallback script. + let other_script = l.name.chars().any(|c| c > '\u{036F}' && !('\u{0400}'..='\u{04FF}').contains(&c)); assert_eq!(other_script, Script::of_language(l.code).is_some(), "{}", l.code); } }