mirror of
https://github.com/aljazceru/notedeck.git
synced 2026-01-05 17:34:21 +01:00
enable japanese, chinese, korean fonts
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
16
src/fonts.rs
16
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user