Bug 29312

Summary: RFE: feature to indicate which characters are missing to satisfy the language support
Product: fontconfig Reporter: Akira TAGOH <akira>
Component: libraryAssignee: Akira TAGOH <akira>
Status: RESOLVED FIXED QA Contact: Behdad Esfahbod <freedesktop>
Severity: enhancement    
Priority: medium CC: fontconfig-bugs, freedesktop
Version: 2.8   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on: 32853    
Bug Blocks:    
Attachments: Patch to add a cmdline tool

Description Akira TAGOH 2010-07-29 19:53:35 UTC
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.
Comment 1 Akira TAGOH 2010-07-30 03:41:45 UTC
Created attachment 37454 [details] [review]
Patch to add a cmdline tool
Comment 2 Akira TAGOH 2011-06-13 20:14:25 UTC
Any thought on this?
Comment 3 Behdad Esfahbod 2011-06-14 11:03:56 UTC
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.
Comment 4 Akira TAGOH 2012-09-05 06:48:04 UTC
Initial patch to fc-query:
  http://cgit.freedesktop.org/~tagoh/fontconfig/commit/?h=bz29312

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.
Comment 5 Behdad Esfahbod 2012-09-05 16:05:22 UTC
I don't think overloading fc-query for this purpose is a good idea.
Comment 6 Akira TAGOH 2012-09-05 17:02:13 UTC
I don't have strong opinion to do it in fc-query as my initial proposal was to have a separate tool on it.
Comment 7 Akira TAGOH 2012-09-10 07:10:49 UTC
reworked to add fc-validate instead of extending features in fc-query.
Comment 8 Akira TAGOH 2013-01-09 05:35:42 UTC
After writing a document for FcLangNormalize(), committed into git master.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.