commit 0f2a5c305539f9160fb89da95f532991df243e14
parent 0945b21710e861daabb106fae16cd9624d4c3f3d
Author: William Casarin <jb55@jb55.com>
Date: Mon, 12 Feb 2024 01:07:39 -0800
enable japanese, chinese, korean fonts
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/src/fonts.rs b/src/fonts.rs
@@ -46,12 +46,10 @@ pub fn setup_gossip_fonts(ctx: &egui::Context) {
)),
);
- if cfg!(feature = "lang-cjk") {
- font_data.insert(
- "NotoSansCJK".to_owned(),
- FontData::from_static(include_bytes!("../assets/fonts/NotoSansCJK-Regular.ttc")),
- );
- }
+ font_data.insert(
+ "NotoSansCJK".to_owned(),
+ FontData::from_static(include_bytes!("../assets/fonts/NotoSansCJK-Regular.ttc")),
+ );
font_data.insert(
"Inconsolata".to_owned(),
@@ -79,9 +77,9 @@ pub fn setup_gossip_fonts(ctx: &egui::Context) {
);
let mut proportional = vec!["DejaVuSans".to_owned(), "NotoEmoji-Regular".to_owned()];
- if cfg!(feature = "lang-cjk") {
- proportional.push("NotoSansCJK".to_owned());
- }
+ //if cfg!(feature = "lang-cjk") {
+ proportional.push("NotoSansCJK".to_owned());
+ //}
families.insert(FontFamily::Proportional, proportional);