Skip to content

Commit

Permalink
Use FreeMono as Braille script fallback, workaround for #237
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Jan 27, 2025
1 parent 4854979 commit 1f97cbd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/font/fallback/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ pub fn script_fallback(script: Script, locale: &str) -> &'static [&'static str]
Script::Armenian => &["Noto Sans Armenian"],
Script::Bengali => &["Noto Sans Bengali"],
Script::Bopomofo => han_unification(locale),
//TODO: DejaVu Sans would typically be selected for braille characters,
// but this breaks alignment when used alongside monospaced text.
// By requesting the use of FreeMono first, this issue can be avoided.
Script::Braille => &["FreeMono"],
Script::Buhid => &["Noto Sans Buhid"],
Script::Chakma => &["Noto Sans Chakma"],
Script::Cherokee => &["Noto Sans Cherokee"],
Expand Down

0 comments on commit 1f97cbd

Please sign in to comment.