Add "Noto Sans Thai" Font when lang-cjk is enabled. Fixes #797

This commit is contained in:
Bu5hm4nn 2024-06-24 14:47:04 +02:00
parent 5409de87cf
commit ee6d7ab5eb
2 changed files with 7 additions and 0 deletions

Binary file not shown.

View File

@ -657,6 +657,12 @@ pub(super) fn font_definitions() -> FontDefinitions {
"NotoSansCJK".to_owned(),
FontData::from_static(include_bytes!("../../../../fonts/NotoSansCJK-Regular.ttc")),
);
font_data.insert(
"NotoSansThai".to_owned(),
FontData::from_static(include_bytes!(
"../../../../fonts/NotoSansThai-VariableFont.ttf"
)),
);
}
font_data.insert(
@ -695,6 +701,7 @@ pub(super) fn font_definitions() -> FontDefinitions {
let mut proportional = vec!["DejaVuSans".to_owned(), "NotoEmoji-Regular".to_owned()];
if cfg!(feature = "lang-cjk") {
proportional.push("NotoSansCJK".to_owned());
proportional.push("NotoSansThai".to_owned())
}
families.insert(FontFamily::Proportional, proportional);