Current fontconfig seems to behalf consistently for testing lang=xx compared to lang=xx-yy. There are some examples and discussion in https://bugzilla.redhat.com/show_bug.cgi?id=546490 and also some discussion here: http://lists.freedesktop.org/archives/fontconfig/2009-November/thread.html#3275
Though I attached a patch recently to modify the langset and the charset at Bug#23758, that may be possible to get this resolved by adding some rules to update the lang in the query pattern like: <match> <test name="lang"> <string>ja</string> </test> <edit name="lang" mode="append" binding="same"> <langset>ja-jp</langset> </edit> </match> <match> <test name="lang"> <string>ja-jp</string> </test> <edit name="lang" mode="append" binding="same"> <langset>ja</langset> </edit> </match> That could be possible to be generated at the build time and give a higher priority to that config perhaps. How does it look?
Is this a dupe of bug 35118?
(In reply to comment #2) > Is this a dupe of bug 35118? I think so
*** This bug has been marked as a duplicate of bug 35118 ***
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.