mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-14 14:41:52 +00:00
#6613: match Gujarati availability to craft font installation
This commit is contained in:
@@ -368,10 +368,7 @@ pub static LANGUAGES: [LangInfo; 29] = [
|
||||
|
||||
impl LangInfo {
|
||||
fn available(&self) -> bool {
|
||||
self.available_with_fonts(
|
||||
cfg!(target_arch = "wasm32"),
|
||||
cfg!(feature = "interface-fonts") && vectorcraft_text::CRAFT_FONTS.iter().any(|f| f.scripts.contains(&"Gujr")),
|
||||
)
|
||||
self.available_with_fonts(cfg!(target_arch = "wasm32"), vectorcraft_text::CRAFT_FONTS.iter().any(|f| f.scripts.contains(&"Gujr")))
|
||||
}
|
||||
|
||||
fn available_with_fonts(&self, web: bool, gujarati_font: bool) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user