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:
1 parent
405cd3be36
commit
ca5db29695
1 file changed
+6
@@ -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)]
|
||||
|
||||
Reference in new issue
Block a user