Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916446 - app-text/xpdf-4.04-r1 "Config Error: No display font for 'Courier'" etc.
Summary: app-text/xpdf-4.04-r1 "Config Error: No display font for 'Courier'" etc.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andrew Savchenko
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2023-10-28 19:00 UTC by Pierre Asselin
Modified: 2024-01-05 14:38 UTC (History)
3 users (show)

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


Attachments
xpdf/GlobalParams.cc: update paths to the URW font files. (01-urw-fonts.patch,4.17 KB, patch)
2023-10-28 19:11 UTC, Pierre Asselin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre Asselin 2023-10-28 19:00:47 UTC
"Config Error" on startup.

Documents that use the PostScript fonts display without any text. I can't attach an example, all the ones I have contain personal information.

Fixable with an .xpdfrc pointing into media-fonts/urw-fonts, but xpdf should work out of the box.

Reproducible: Always

Steps to Reproduce:
1. Launch xpdf without an ~/.xpdfrc file.

Actual Results:  
To stderr:
Config Error: No display font for 'Courier'
Config Error: No display font for 'Courier-Bold'
Config Error: No display font for 'Courier-BoldOblique'
Config Error: No display font for 'Courier-Oblique'
Config Error: No display font for 'Helvetica'
Config Error: No display font for 'Helvetica-Bold'
Config Error: No display font for 'Helvetica-BoldOblique'
Config Error: No display font for 'Helvetica-Oblique'
Config Error: No display font for 'Symbol'
Config Error: No display font for 'Times-Bold'
Config Error: No display font for 'Times-BoldItalic'
Config Error: No display font for 'Times-Italic'
Config Error: No display font for 'Times-Roman'
Config Error: No display font for 'ZapfDingbats'


Expected Results:  
No error message on startup, text displayed properly.

I use an /etc/portage/patches cloned from
https://bugzilla.redhat.com/attachment.cgi?id=1348491&action=diff .
Will attach.
Comment 1 Pierre Asselin 2023-10-28 19:11:39 UTC
Created attachment 873611 [details, diff]
xpdf/GlobalParams.cc: update paths to the URW font files.

Stolen from https://bugzilla.redhat.com/attachment.cgi?id=1348491&action=diff ,
directory path adjusted for Gentoo.

You may want to fix doc/xpdfrc as well.
Comment 2 Phil 2024-01-05 14:29:03 UTC
I can confirm putting the attached patch into /etc/portage/patches/app-text/xpdf-4.04-r1/ fixes the described problem.

No idea why the problem occured just now: According to urw-base35-fonts.git history, these oddly named pfb files xpdfrc lists were dropped in 2016 already.

Anyway, thanks Pierre for reporting here - my own research about the problem cause did not discover rhbz#1509862 nor any other report clarifying what's going on.
Comment 3 Larry the Git Cow gentoo-dev 2024-01-05 14:37:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=501e2c8dc84171930394db872cb3cf145997d57b

commit 501e2c8dc84171930394db872cb3cf145997d57b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-01-05 14:37:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-05 14:37:30 +0000

    app-text/xpdf: fix urw font paths
    
    Closes: https://bugs.gentoo.org/916446
    Signed-off-by: Sam James <sam@gentoo.org>

 app-text/xpdf/files/xpdf-4.04-font-paths.patch |  48 ++++++++
 app-text/xpdf/xpdf-4.04-r2.ebuild              | 163 +++++++++++++++++++++++++
 2 files changed, 211 insertions(+)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-05 14:38:11 UTC
Applied, thanks. I've not done the doc fixup as I'm sort of doing this driveby.