add a fallback font for chinese text on macos

I'm no expert, but this at least allows me to mash the IME
in pinyin mode and see chinese characters.
This commit is contained in:
Wez Furlong committed 2019-11-03 22:01:35 -08:00
1 parent 405cd3be36
commit ca5db29695
1 file changed
+6
+6
View File
@@ -727,6 +727,12 @@ impl TextStyle {
bold: None,
italic: None,
});
#[cfg(target_os = "macos")]
font.push(FontAttributes {
family: "Apple LiGothic".into(),
bold: None,
italic: None,
});
// Fallback font that has unicode replacement character
#[cfg(windows)]