add fallback font with replacement character on windows

This commit is contained in:
Wez Furlong committed 2019-11-02 16:42:03 -07:00
1 parent f88fed9dfb
commit 8da5584a52
1 file changed
+8
+8
View File
@@ -727,6 +727,14 @@ impl TextStyle {
bold: None,
italic: None,
});
// Fallback font that has unicode replacement character
#[cfg(windows)]
font.push(FontAttributes {
family: "Segoe UI".into(),
bold: None,
italic: None,
});
#[cfg(windows)]
font.push(FontAttributes {
family: "Segoe UI Emoji".into(),