From 51e3ef662701cdb02c30dc19bf0a3b6c3f992e93 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 13 Oct 2022 13:38:06 -0600 Subject: [PATCH] Add some windows common fallbacks --- examples/text/src/font/fallback/windows.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/text/src/font/fallback/windows.rs b/examples/text/src/font/fallback/windows.rs index f13e8798..5d38ec69 100644 --- a/examples/text/src/font/fallback/windows.rs +++ b/examples/text/src/font/fallback/windows.rs @@ -2,10 +2,18 @@ use unicode_script::Script; // Fallbacks to use after any script specific fallbacks pub fn common_fallback() -> &'static [&'static str] { - &[] + //TODO: abstract style (sans/serif/monospaced) + &[ + "Segoe UI", + "FreeSans", + "Segoe UI Symbol", + "Segoe UI Emoji", + //TODO: Add CJK script here for doublewides? + ] } // Fallbacks to use per script pub fn script_fallback(script: &Script, locale: &str) -> &'static [&'static str] { + //TODO: per-script fallbacks &[] }