Bug 20226 - Fonts Sorted Incorrectly
Summary: Fonts Sorted Incorrectly
Status: RESOLVED DUPLICATE of bug 14883
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Keith Packard
QA Contact: Behdad Esfahbod
URL: https://bugs.launchpad.net/ubuntu/+so...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-19 16:01 UTC by Peter Hendrickson
Modified: 2009-03-07 14:14 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
pdf file demonstrating the bug (31.24 KB, application/pdf)
2009-03-02 12:04 UTC, Dimitrios Symeonidis
Details
evince screenshot (48.46 KB, image/png)
2009-03-02 12:06 UTC, Dimitrios Symeonidis
Details
xpdf screenshot (43.30 KB, image/png)
2009-03-02 12:07 UTC, Dimitrios Symeonidis
Details
output of fc-match (1.76 KB, application/octet-stream)
2009-03-02 12:07 UTC, Dimitrios Symeonidis
Details

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.