https://bugs.documentfoundation.org/show_bug.cgi?id=151122
--- Comment #51 from خالد حسني <[email protected]> --- Determining what languages a font supports is tricky, since defining what characters are required to support a language does not always have a single answer. Some system APIs can provide a list of languages a font supports (e.g. FontConfig on Linux), which would allow us to offload this question, but such APIs might not be available for all platforms and if they are they might not give consistent answers (FontConfig might say a font supports Arabic, CoreText might say it does not, so we get different list filtering in different platforms). Unicode’s CLDR has language data that includes exemplar characters (e.g. https://github.com/unicode-org/cldr/blob/main/common/main/ar.xml#L1231C4-L1231C22), so that is might be something we can use. Fonts can have a “meta” table that declares what language they support and what languages they are designed for https://learn.microsoft.com/en-us/typography/opentype/spec/meta, though not many fonts include it. -- You are receiving this mail because: You are the assignee for the bug.
