Bug 13162 - Unexpected behaviour of FcFontSort
Summary: Unexpected behaviour of FcFontSort
Alias: None
Product: fontconfig
Classification: Unclassified
Component: library (show other bugs)
Version: 2.4
Hardware: All All
: medium normal
Assignee: Keith Packard
QA Contact:
Depends on:
Reported: 2007-11-09 06:20 UTC by David
Modified: 2007-11-13 15:12 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Description David 2007-11-09 06:20:22 UTC
The description of the function FcFontSort states: "Returns the list of fonts sorted by closeness to p". So, if the font p is present among the set of the system fonts, this font should be in the beginning of the sorted list.

But in reality FcPatternEqual returns FcFalse if we compare the first element of the sorted list and the font p. The print of both fonts by the function FcPatternPrint shows that the fonts are similar but there are missed properties of the font p in the first font of the list.

The detailed bug description can be found at: 

Comment 1 Keith Packard 2007-11-13 15:12:21 UTC
FcFontMatch and FcFontSetMatch call FcFontRenderPrepare, unlike FcFontSort and FcFontSetSort which do not. I've clarified this in the documentation.

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.