Hi, * Summary Let's drop unnecessary laguages from fontconfig cache instead of checking it at runtime. * Background We have a template[1] to apply for certain language only. this is necessary for languages particularly which has similar coverage like CJK and Arabic etc. However this evaluation always happens when applications are going to query a font with API. the one might be trivial but it might be not if a lot of queries happens. * Replacement I'd propose to drop those unnecessary and problematic languages for a font from fontconfig cache instead of testing a language at runtime. it can be done like: <match target="scan"> <test name="family"> <string>font name</string> </test> <edit name="lang" mode="assign"> <minus> <name>lang</name> <langset> <string>xx</string> ... </langset> </minus> </edit> </match> This is evaluated only when creating/updating fontconfig caches by fc-cache. then the targeted cache doesn't have it and matcher won't pick it up for a certain language anymore. Well, the recipe is a bit complicated. we may need a syntax sugar for that though. Any thought? [1].. https://fedoraproject.org/wiki/Fontconfig_packaging_tips#Locale-specific_overrides -- Akira TAGOH _______________________________________________ fonts mailing list -- fonts@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to fonts-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/fonts@xxxxxxxxxxxxxxxxxxxxxxx