Bug 20226

Summary: Fonts Sorted Incorrectly
Product: poppler Reporter: Peter Hendrickson <pdh>
Component: generalAssignee: Keith Packard <keithp>
Status: RESOLVED DUPLICATE QA Contact: Behdad Esfahbod <freedesktop>
Severity: normal    
Priority: medium CC: freedesktop
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
URL: https://bugs.launchpad.net/ubuntu/+source/evince/+bug/327757
Whiteboard:
i915 platform: i915 features:
Attachments: pdf file demonstrating the bug
evince screenshot
xpdf screenshot
output of fc-match

Description Peter Hendrickson 2009-02-19 16:01:52 UTC
The FcFontSort() routine returns fonts sorted in the wrong order.  All the details
are at the above URL along with a code sample which demonstrates the problem.
This bug is currently causing Evince to display incorrect fonts under Ubuntu's
"Hardy Heron."
Comment 1 Behdad Esfahbod 2009-03-02 02:00:02 UTC
I can't access launchpad.  Reopen the bug if you are willing to actually report *here*.
Comment 2 Dimitrios Symeonidis 2009-03-02 12:04:20 UTC
Created attachment 23451 [details]
pdf file demonstrating the bug
Comment 3 Dimitrios Symeonidis 2009-03-02 12:04:59 UTC
reopening
Comment 4 Dimitrios Symeonidis 2009-03-02 12:06:53 UTC
Created attachment 23452 [details]
evince screenshot
Comment 5 Dimitrios Symeonidis 2009-03-02 12:07:17 UTC
Created attachment 23453 [details]
xpdf screenshot
Comment 6 Dimitrios Symeonidis 2009-03-02 12:07:54 UTC
Created attachment 23454 [details]
output of fc-match
Comment 7 Behdad Esfahbod 2009-03-06 11:50:24 UTC
I'm fairly sure that this bug has been fixed in poppler already.
Comment 8 Peter Hendrickson 2009-03-07 13:52:12 UTC
I'm pretty sure the bug is in fontconfig and not in poppler.  It looked to me like more recent versions of poppler did not exhibit the bug because they call fontconfig differently.  However, the underlying bug remains in the fontconfig library and will affect other people who try to use the library.

There's a fair amount of information in the Ubuntu bug report:
https://bugs.launchpad.net/ubuntu/+source/evince/+bug/327757

Specifically, please see this code sample:
http://launchpadlibrarian.net/22890843/fchello.c

It demonstrates that FcFontSort is apparently not sorting correctly and, actually, gives a different result from what fc-match gives.
Comment 9 Behdad Esfahbod 2009-03-07 14:14:03 UTC
It's a bug in the fonts.  See bug 17493 and discussion on https://bugzilla.redhat.com/show_bug.cgi?id=478332

*** This bug has been marked as a duplicate of bug 14883 ***

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.