mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-16 18:23:50 +00:00
Add "Noto Sans Thai" Font when lang-cjk
is enabled. Fixes #797
This commit is contained in:
parent
5409de87cf
commit
ee6d7ab5eb
BIN
fonts/NotoSansThai-VariableFont.ttf
Executable file
BIN
fonts/NotoSansThai-VariableFont.ttf
Executable file
Binary file not shown.
@ -657,6 +657,12 @@ pub(super) fn font_definitions() -> FontDefinitions {
|
|||||||
"NotoSansCJK".to_owned(),
|
"NotoSansCJK".to_owned(),
|
||||||
FontData::from_static(include_bytes!("../../../../fonts/NotoSansCJK-Regular.ttc")),
|
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(
|
font_data.insert(
|
||||||
@ -695,6 +701,7 @@ pub(super) fn font_definitions() -> FontDefinitions {
|
|||||||
let mut proportional = vec!["DejaVuSans".to_owned(), "NotoEmoji-Regular".to_owned()];
|
let mut proportional = vec!["DejaVuSans".to_owned(), "NotoEmoji-Regular".to_owned()];
|
||||||
if cfg!(feature = "lang-cjk") {
|
if cfg!(feature = "lang-cjk") {
|
||||||
proportional.push("NotoSansCJK".to_owned());
|
proportional.push("NotoSansCJK".to_owned());
|
||||||
|
proportional.push("NotoSansThai".to_owned())
|
||||||
}
|
}
|
||||||
|
|
||||||
families.insert(FontFamily::Proportional, proportional);
|
families.insert(FontFamily::Proportional, proportional);
|
||||||
|
Loading…
Reference in New Issue
Block a user