Bug 13162

Summary: Unexpected behaviour of FcFontSort
Product: fontconfig Reporter: David <ssdk>
Component: libraryAssignee: Keith Packard <keithp>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: 2.4   
Hardware: All   
OS: All   
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.