I'm keen to see a tool in fontconfig upstream for the purpose of what summary says. this is useful and helpful for the font designers to see what they need to do next to support the language X on fontconfig.
Created attachment 37454 [details] [review]
Patch to add a cmdline tool
Any thought on this?
The approach here is completely wrong. You can't include fcint.h.
Just fix Bug 32853 - Export FcGetDefaultLang(). Then use that function, or what's passed to -l, or if -a is used, every language in FcGetLangs(). Get charset for that.
FcFreeTypeCharSet() the face, get the charset there.
FcCharSetSubtract() the two charsets.
Print the difference.
Not sure if this should be a separate tool. I'm leaning towards an option to fc-query.
Initial patch to fc-query:
Though the output isn't ideal. it's hard to see what exactly is missing. we need to have another function to show the detailed FcCharSet.
I don't think overloading fc-query for this purpose is a good idea.
I don't have strong opinion to do it in fc-query as my initial proposal was to have a separate tool on it.
reworked to add fc-validate instead of extending features in fc-query.
After writing a document for FcLangNormalize(), committed into git master.