Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119898 - poppler 0.5.0 has problems with fonts.
Summary: poppler 0.5.0 has problems with fonts.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Daniel Gryniewicz (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-22 02:46 UTC by Andreas Kotowicz
Modified: 2006-02-02 13:01 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,3.39 KB, text/plain)
2006-01-23 08:09 UTC, Donnie Berkholz (RETIRED)
Details
htmlprimerpdf-html.png (htmlprimerpdf-html.png,64.48 KB, image/png)
2006-01-23 09:00 UTC, Donnie Berkholz (RETIRED)
Details
sample pdf file (BeginnersGuideToHTML.pdf,73.57 KB, application/pdf)
2006-01-26 14:18 UTC, Andreas Kotowicz
Details
5758.bugs.fdo-try-all-fonts.patch (5758.bugs.fdo-try-all-fonts.patch,2.20 KB, patch)
2006-01-29 01:05 UTC, Ed Catmur
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kotowicz 2006-01-22 02:46:46 UTC
I have upgraded poppler, poppler-binding and evince to version 0.5.0. 

opening and pdf file like http://archive.ncsa.uiuc.edu/General/Internet/WWW/HTMLPrimerPDF.pdf
I get a big mess instead of text displayed. and evince tells me on the console that it has problems with some fonts:

$ evince HTMLPrimerPDF.pdf
Error: Couldn't find a font for 'Times Roman'
some font thing failed
Error: Couldn't find a font for 'Times Bold'
some font thing failed
Error: Couldn't find a font for 'Times Italic'
some font thing failed
Error: Couldn't find a font for 'Courier'
some font thing failed
Comment 1 Daniel Gryniewicz (RETIRED) gentoo-dev 2006-01-23 07:58:52 UTC
This works fine with me for evince.  I think this is going to take some work to track down...

Lets start with the obvious.  Did this work with evince 0.4?  Do you have Times and Courier fonts installed?  Are you running xfs?  If you have Times and Courier, can you select them from the gnome font preferencre?

Assuming this all works, we'll get into esoterica afterwards.
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2006-01-23 08:03:07 UTC
(In reply to comment #1)
> Lets start with the obvious.  Did this work with evince 0.4?  

Yes.

> Do you have Times
> and Courier fonts installed?  

Yes.

> Are you running xfs?  

Shouldn't be relevant, evince uses font-config. But yes.

> If you have Times and
> Courier, can you select them from the gnome font preferencre?

Yes.
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2006-01-23 08:09:44 UTC
Created attachment 77903 [details]
emerge-info.txt
Comment 4 Daniel Gryniewicz (RETIRED) gentoo-dev 2006-01-23 08:53:46 UTC
That particular error is generated by poppler, not by evince.  The font handling in poppler seems fairly straight forward, and is done by font-config.  Could you try runing pdftohtml on the file (after verifying that your pdftohtml comes from poppler, of course).
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2006-01-23 09:00:52 UTC
Created attachment 77915 [details]
htmlprimerpdf-html.png

Here's what the produced HTML looks like -- a bunch of horizontal gray lines on every page. No error messages produced by pdftohtml.

donnie@supernova ~ $ pdftohtml HTMLPrimerPDF.pdf
Page-1
Page-2
Page-3
Page-4
Page-5
Page-6
Page-7
Page-8
Page-9
Page-10
Page-11
Page-12
Page-13
Page-14
Page-15
Page-16
Page-17
Page-18
Page-19
Page-20
Page-21
Page-22
Page-23
Page-24
donnie@supernova ~ $
Comment 6 Daniel Gryniewicz (RETIRED) gentoo-dev 2006-01-23 09:06:02 UTC
Okay, I get the same problem with pdftohtml (I didn't look at my output before), so it's definitely a poppler problem.  I'll look into it.
Comment 7 Daniel Gryniewicz (RETIRED) gentoo-dev 2006-01-23 09:21:05 UTC
This looks like the upstream bug https://bugs.freedesktop.org/show_bug.cgi?id=5466
Comment 8 Daniel Gryniewicz (RETIRED) gentoo-dev 2006-01-26 12:38:19 UTC
Which version of fontconfig do you have?  If it's not 2.3.2, could you try 2.3.2?  Upgrading to 2.3.2 on my stable box didn't fix the "Couldn't find a font" errors, but it *did* result in actual display of text.
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2006-01-26 12:49:55 UTC
(In reply to comment #8)
> Which version of fontconfig do you have?  If it's not 2.3.2, could you try
> 2.3.2?  Upgrading to 2.3.2 on my stable box didn't fix the "Couldn't find a
> font" errors, but it *did* result in actual display of text.

Not for me -- got 2.3.2, still get garbage text for the Courier font in my test PDF. The posted PDF isn't at that site anymore.
Comment 12 Mathis Ahrens 2006-01-27 21:32:52 UTC
Try this temporary workaround:
Disable bitmap fonts in your /etc/fonts/local.conf

<selectfont>
  <rejectfont>
   <pattern>
     <patelt name="scalable"><bool>false</bool></patelt>
   </pattern>
  </rejectfont>
 </selectfont>
Comment 13 Andreas Kotowicz 2006-01-28 02:32:08 UTC
(In reply to comment #12)
> Try this temporary workaround:
> Disable bitmap fonts in your /etc/fonts/local.conf

this works for me.
Comment 14 Ed Catmur 2006-01-29 01:03:39 UTC
See also http://bugs.freedesktop.org/show_bug.cgi?id=5758 for a patch.
Comment 15 Ed Catmur 2006-01-29 01:05:20 UTC
Created attachment 78394 [details, diff]
5758.bugs.fdo-try-all-fonts.patch
Comment 16 Mathis Ahrens 2006-01-29 13:54:18 UTC
Awesome Ed!
This works!!
Comment 17 Daniel Gryniewicz (RETIRED) gentoo-dev 2006-02-01 12:00:40 UTC
Fixed in poppler-0.5.0-r2.  Thanks.