Fonts matching lang not territory should satisfy sort pattern lang.

A pattern specifying 'Chinese' (:lang=zh) without a territory should be
satisfied by any font supporting any Chinese lang. The code was requiring
that the lang tags match exactly, causing this sort to fail.
This commit is contained in:
Keith Packard 2006-09-01 15:33:27 -07:00
parent cfccd4873a
commit 3bb1812f0d
1 changed files with 1 additions and 1 deletions

View File

@ -730,7 +730,7 @@ FcFontSetSort (FcConfig *config,
* If this node matches any language, go check
* which ones and satisfy those entries
*/
if (nodeps[f]->score[MATCH_LANG_INDEX] < nPatternLang)
if (nodeps[f]->score[MATCH_LANG_INDEX] < 200)
{
for (i = 0; i < nPatternLang; i++)
{