adjust windows font fallback

I still can't get the emoji to render on windows, but these font names
are more appropriate choices.
This commit is contained in:
Wez Furlong committed 2019-03-02 13:09:29 -08:00
1 parent e773cff24e
commit bb8c2c7876
1 file changed
+9 -2
+9 -2
View File
@@ -108,7 +108,9 @@ impl Default for Config {
#[cfg(target_os = "macos")]
const FONT_FAMILY: &str = "Menlo";
#[cfg(not(target_os = "macos"))]
#[cfg(windows)]
const FONT_FAMILY: &str = "Consolas";
#[cfg(all(not(target_os = "macos"), not(windows)))]
const FONT_FAMILY: &str = "monospace";
#[derive(Debug, Deserialize, Clone, PartialEq, Eq, Hash)]
@@ -235,7 +237,12 @@ impl TextStyle {
});
#[cfg(windows)]
font.push(FontAttributes {
family: "Segoe UI".into(),
family: "Segoe UI Emoji".into(),
bold: None,
italic: None,
});
font.push(FontAttributes {
family: "Segoe UI Symbol".into(),
bold: None,
italic: None,
});