Bug 1158468
| Summary: | problems to print pure text files with the lpr or lp command in F21: only blank sheets are printed | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Joachim Backes <joachim.backes> |
| Component: | xorg-x11-font-utils | Assignee: | X/OpenGL Maintenance List <xgl-maint> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 21 | CC: | fonts-bugs, hdegoede, i18n-bugs, jpopelka, mfabian, orion, samuel-rhbugs, tagoh, twaugh, xgl-maint |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | libfontenc-1.1.2-3.fc21 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-11-03 05:23:47 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Joachim Backes
2014-10-29 12:58:42 UTC
Looks like a paps related problem, running # /usr/lib/cups/filter/texttopaps 1 me '' 1 '' < /etc/passwd > x.ps creates blank page. But the latest paps-0.6.8-30.fc21 is over 2 months old so it's probably not directly paps' problem when you say that you have problems only last few days. FWIW, this works fine for me, same paps version. Interestingly, this works: paps /usr/share/doc/paps/AUTHORS > test.ps but this doesn't: /usr/lib/cups/filter/texttopaps j-1 root test 1 '' /usr/share/doc/paps/AUTHORS > test.ps Turns out that when run as texttopaps, the default font changes from Monospace 12 to Courier. So: paps --font=Courier /usr/share/doc/paps/AUTHORS > test.ps reproduces the blank page. # fc-match Courier courR12-ISO8859-1.pcf.gz: "Courier" "Regular" from: /usr/share/X11/fonts/75dpi/courR12-ISO8859-1.pcf.gz /usr/share/X11/fonts/100dpi/courR12-ISO8859-1.pcf.gz # fc-match 'Monospace 12' DejaVuSans.ttf: "DejaVu Sans" "Book" on my F20 box: # fc-match Courier n022003l.pfb: "Nimbus Mono L" "Regular" from urw-fonts. So font ordering/config issues? # ls -l /usr/share/fonts/X11 lrwxrwxrwx. 1 root root 12 Aug 18 23:08 /usr/share/fonts/X11 -> ../X11/fonts This is causing fc-cache to search the full /usr/share/X11/fonts hierarchy, which is causing problems. * Sat Jul 19 2014 Hans de Goede <hdegoede> - 1:7.5-20 - Add a /usr/share/fonts/X11 symlink to usr/share/X11/fonts (rhbz#1046341) Might it not be that several urw-fonts changed names without any aliases being added? https://bugzilla.redhat.com/show_bug.cgi?id=1147931 Removing /usr/share/fonts/X11 (it's a link to ../X11/fonts) seems to be a workaround for my problem! Hi, (In reply to Tim Waugh from comment #5) > Might it not be that several urw-fonts changed names without any aliases > being added? > https://bugzilla.redhat.com/show_bug.cgi?id=1147931 Looking at comment 3 it seems that the X11 symlink really is the problem, with that symlink I get the following: [hans@shalem ~]$ fc-match Courier courR12-ISO8859-1.pcf.gz: "Courier" "Regular" So no "Nimbus ..." involved at all, I guess paps does not know how to deal with pcf files is causing the problem here. More in general having Courier switch font is definitely an undesirable side-effect of adding the X11 symlink. Without the symlink I get: [hans@shalem fonts]$ fc-match Courier n022003l.pfb: "Nimbus Mono L" "Regular" Note the already includes the " L" suffix which is new in F-21, so bug 1147931 is not a problem here. I'll go and revert the addition of the symlink, and instead patch luit to use the proper search path for Fedora. libfontenc-1.1.2-3.fc21,xorg-x11-font-utils-7.5-23.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/libfontenc-1.1.2-3.fc21,xorg-x11-font-utils-7.5-23.fc21 I think the difference between Nimbus and Courier from X11 font is whether an outline font or not and the applications (paps, in this case) doesn't support non-outline fonts to render. I'm not sure if there are any other applications affecting this, I should fix paps too to request the outline fonts only. easier fix for this issue is to add the following matching rule to the fontconfig folder:
<fontconfig>
<match>
<test name="prgname"><string>paps</string></test>
<edit name="scalable"><bool>true</bool></edit>
</match>
<match>
<test name="prgname"><string>text2paps</string></test>
<edit name="scalable"><bool>true</bool></edit>
</match>
</fontconfig>
meant s/text2paps/texttopaps/ (In reply to Akira TAGOH from comment #9) > I think the difference between Nimbus and Courier from X11 font is whether > an outline font or not and the applications (paps, in this case) doesn't > support non-outline fonts to render. I'm not sure if there are any other > applications affecting this, I should fix paps too to request the outline > fonts only. Right, but even with paps fixed, fontconfig coming up with a different font then before adding the X11 symlink is an undesirable side-effect, so the symlink needs to go away anyways, at which point fixing paps to do the right thing wrt requesting only fonts it supports becomes less important :) It's not immediately obvious to me how you request only a scalable font in pango. Package libfontenc-1.1.2-3.fc21, xorg-x11-font-utils-7.5-23.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing libfontenc-1.1.2-3.fc21 xorg-x11-font-utils-7.5-23.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-14122/libfontenc-1.1.2-3.fc21,xorg-x11-font-utils-7.5-23.fc21 then log in and leave karma (feedback). After all that analysis, it may not have been the issue. Still seems to be a problem even with fc-match returning: n022003l.pfb: "Nimbus Mono L" "Regular" Anyone else care to take a stab at it? libfontenc-1.1.2-3.fc21, xorg-x11-font-utils-7.5-23.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report. Actually, does seem to be working for me now. |