Skip to content

Commit eb4aad1

Browse files
authored
Set default font to Noto Sans (Riey#618)
* Set default font to Noto Sans * Make D2Coding to fallback font * Update CHANGELOG.md * Add font to `Recommends` for deb package
1 parent 695c148 commit eb4aad1

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

docs/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* Update configuration.md
1010
* Correct scan code to properly recognize F11 and F12 key
1111
* Fix KDE plasmashell crash #609
12+
* Set default font to `Noto Sans CJK KR`
1213

1314
## 3.0.1
1415

res/default_config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ engine:
7474
Tab:
7575
behavior: Commit
7676
result: ConsumeIfProcessed
77-
candidate_font: D2Coding
77+
candidate_font: Noto Sans CJK KR
7878
xim_preedit_font:
79-
- D2Coding
79+
- Noto Sans CJK KR
8080
- 15.0
8181
latin:
8282
layout: Qwerty

scripts/control.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ Homepage: https://github.com/Riey/kime
66
Section: utils
77
Priority: optional
88
Architecture: %ARCH%
9+
Recommends: fonts-noto-cjk

src/engine/config/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ impl Default for EngineConfig {
188188
Key::normal(KeyCode::Tab) => Hotkey::new(HotkeyBehavior::Commit, HotkeyResult::ConsumeIfProcessed),
189189
},
190190
},
191-
xim_preedit_font: ("D2Coding".to_string(), 15.0),
192-
candidate_font: "D2Coding".to_string(),
191+
xim_preedit_font: ("Noto Sans CJK KR".to_string(), 15.0),
192+
candidate_font: "Noto Sans CJK KR".to_string(),
193193
}
194194
}
195195
}

src/engine/core/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl Config {
3030

3131
let load_font = |name| {
3232
db.query(&Query {
33-
families: &[Family::Name(name), Family::Serif],
33+
families: &[Family::Name(name), Family::Name("D2Coding")],
3434
..Default::default()
3535
})
3636
.and_then(|id| db.with_face_data(id, |data, index| (data.to_vec(), index)))

0 commit comments

Comments
 (0)