notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 989f88c989f5d6ec85f719efab6f80fb1a95ee00
parent 01b97044154844e835576d454bbbbde890c3d71a
Author: William Casarin <jb55@jb55.com>
Date:   Tue,  3 Sep 2024 11:45:59 -0700

fonts: add thai support

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Aassets/fonts/NotoSansThai-Regular.ttf | 0
Msrc/fonts.rs | 6++++++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/assets/fonts/NotoSansThai-Regular.ttf b/assets/fonts/NotoSansThai-Regular.ttf Binary files differ. diff --git a/src/fonts.rs b/src/fonts.rs @@ -87,6 +87,11 @@ pub fn setup_fonts(ctx: &egui::Context) { FontData::from_static(include_bytes!("../assets/fonts/NotoSansCJK-Regular.ttc")), ); + font_data.insert( + "NotoSansThai".to_owned(), + FontData::from_static(include_bytes!("../assets/fonts/NotoSansThai-Regular.ttf")), + ); + // Some good looking emojis. Use as first priority: font_data.insert( "NotoEmoji".to_owned(), @@ -104,6 +109,7 @@ pub fn setup_fonts(ctx: &egui::Context) { "DejaVuSans".to_owned(), "NotoEmoji".to_owned(), "NotoSansCJK".to_owned(), + "NotoSansThai".to_owned(), ]; let mut proportional = vec!["Onest".to_owned()];