[Fontconfig-bugs] [Bug 25670] Inconsistent behaviour of FcFontMatch()

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Apr 9 02:48:49 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=25670

Akira TAGOH <akira at tagoh.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #5 from Akira TAGOH <akira at tagoh.org> 2012-04-09 02:48:49 PDT ---
Downloading iso to check; meanwhile, thinking about possible reason why it
happened. at the run time, fontconfig builds the pattern to pick up the best
matched font and look up with it. at that time, recording the score to
determine what the font are best for the pattern. to avoid the conflict on the
score, fontconfig has the list that ordered by the priority:
http://cgit.freedesktop.org/fontconfig/tree/src/fcmatch.c#n188

If the font has same score on the same object or even if it has higher score on
other objects but lower priority object, it's simply ignored when figuring out
the best matched font:
http://cgit.freedesktop.org/fontconfig/tree/src/fcmatch.c#n484

this would be the side-effect though, I'm working on adding FC_FILE to
FcFontMatch() on Bug#28491 and giving highest priority to FC_FILE to pick up
exactly. as the result of FcFontMatch() contains FC_FILE as well, that would
ensure the same result with the FcPattern returned by FcFontMatch() after all.
"If that is the case" of course.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Fontconfig-bugs mailing list