Bug 64414

Summary: fc-match georgia without Georgia installed returns preferred sans serif family
Product: fontconfig Reporter: Felix Miata <mrmazda>
Component: confAssignee: fontconfig-bugs
Status: RESOLVED NOTABUG QA Contact: Behdad Esfahbod <freedesktop>
Severity: normal    
Priority: medium CC: akira
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Felix Miata 2013-05-10 07:08:51 UTC
Bug observed in:
Fedora 18
Mageia 3
openSUSE 10.2, 10.3, 11.0, 11.1, 11.2, 11.4, 12.1, 12.2, 12.3 and 13.1.

Georgia is a Microsoft serif TTF.

To reproduce:
1-ensure Georgia is not available on the system
2-fc-match georgia

Actual results:
(e.g.) DejaVuSans.ttf: "DejaVu Sans" "Book"
(e.g.) DroidSans.ttf: "Droid Sans" "Regular"

Expected results:
(e.g.) DejaVuSerif.ttf: "DejaVu Serif" "Book"
(e.g.) DroidSerif.ttf: "Droid Sans" "Regular"

Notes:
1-openSUSE 10.1's fontconfig-2.3.94-18.4 reasonably returns:
n021003l.pfb "Nimbus Roman No9 L" "Regular"
2-openSUSE 10.2's brokenness is using fontconfig-2.4.1-19
Comment 1 Akira TAGOH 2013-05-10 07:47:29 UTC
I'd say this is not a bug. there are still a workaround/improvement to deal with "blah blah blah isn't serif but fc-match sans-serif returns blah blah blah" though, without installed fonts, I'd not care "blah blah blah is serif but fc-match blah blah blah returns sans-serif fonts".

Given that the family name contains "serif" word, it could guesses one may be asking for serif font. but in this case, there are no way to guess if one is asking for serif. adding everything to see if the family name in the pattern is serif makes no sense.

If you want to get any serif fonts anyway, you should do fc-match serif instead.

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.