Skip to content

Commit

Permalink
Rename fontdb sections, add support for adobe source han sans CJK
Browse files Browse the repository at this point in the history
  • Loading branch information
Stoppedpuma committed Jan 21, 2025
1 parent d9aecd7 commit e9525ff
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/ui/theme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ pub fn load_system_fonts(mut fonts: FontDefinitions) -> FontDefinitions{
debug!("Attempting to load sys fonts");
let mut fontdb = HashMap::new();

fontdb.insert("chinese_simplified", vec![
fontdb.insert("asian_fonts", vec![
"Heiti SC",
"Songti SC",
"Noto Sans CJK SC", // Good coverage for Simplified Chinese
Expand All @@ -152,9 +152,14 @@ pub fn load_system_fonts(mut fonts: FontDefinitions) -> FontDefinitions{
"MS Gothic",
"Noto Sans SC",
"PingFang SC",
"Source Han Sans CN",
"Source Han Sans HK",
"Source Han Sans JP",
"Source Han Sans KR",
"Source Han Sans TW",
]);

fontdb.insert("arabic", vec![
fontdb.insert("arabic_fonts", vec![
"Noto Sans Arabic",
"Amiri",
"Lateef",
Expand Down

0 comments on commit e9525ff

Please sign in to comment.