From 91f1f80e6033a450c6b533aa25705cd4f295b878 Mon Sep 17 00:00:00 2001 From: German Khokhlov Date: Wed, 28 Oct 2026 16:26:03 +0400 Subject: [PATCH] i18n(ar): Arabic face for the Global Context lines The Global Context panel and its buttons set ui-monospace through the `font` shorthand, so Arabic fell back to a fixed-pitch face with letters spaced apart. In Arabic they use the Arabic-aware mono stack. Co-Authored-By: Claude Opus 5.5 --- src/ui/styles/rtl.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/ui/styles/rtl.css b/src/ui/styles/rtl.css index 921aa4c64..243076060 100644 --- a/src/ui/styles/rtl.css +++ b/src/ui/styles/rtl.css @@ -40,6 +40,20 @@ html:lang(ar) { 'Inter', 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, 'Geeza Pro', Tahoma, sans-serif; } +/* The Global Context lines and their buttons set ui-monospace through the + `font` shorthand; route them through the Arabic-aware stack too. */ +html:lang(ar) + :is( + #military-awareness-panel, + .military-awareness-controls button, + .military-awareness-standby button, + .military-awareness-compass-label, + .military-awareness-compass-heading, + .military-awareness-direction-label, + .tr3b-toggle + ) { + font-family: var(--font-mono); +} html:lang(ar) :is(#intel-hud, #cockpit-hud) { --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Noto Sans Arabic', 'Geeza Pro',