]> git.wh0rd.org - fontconfig.git/commit
I changed FcFontSetSort to respect the generic aliases better in the face
authorKeith Packard <keithp@keithp.com>
Tue, 14 Dec 2004 00:12:25 +0000 (00:12 +0000)
committerKeith Packard <keithp@keithp.com>
Tue, 14 Dec 2004 00:12:25 +0000 (00:12 +0000)
commit5cf8c5364f1b7a676f52b480fa55c571cadc6fda
treefc1328e8a043398331ceaf2faba9ed9a03905921
parent46a10637cde656967b60f1e028b24763022358bb
I changed FcFontSetSort to respect the generic aliases better in the face
    of language matching.
What I did was to ammend the strict sort order used by FcFontSort so that
    it 'satisfies' the language specified in the pattern by locating the
    best matching font supporting each pattern language and then ignores
    language in the remaining fonts for purposes of matching.
So, when asking for 'sans:lang=en', you'll get an English font first, and
    then the remaining fonts sorted with respect to the 'sans' alias alone
    -- pushing Kochi fonts ahead of other English-supporting Han fonts.
reviewed by: Owen Taylor <otaylor@redhat.com>
ChangeLog
src/fcmatch.c