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:
1 parent
e773cff24e
commit
bb8c2c7876
1 file changed
+9
-2
+9
-2
@@ -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,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user