From: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [ISSUE] [CLOSED] Firefox printing is sometimes garbled due to Helvetica in font-adobe-100dpi and font-adobe-75dpi (which are deps of xorg)
Date: Fri, 06 May 2022 04:08:01 +0200 [thread overview]
Message-ID: <20220506020801.a9fR8aIk1Ic7Sw1Hx8Jp8K0k98js1Ejuh06yc_Ee6Ms@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-25584@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 2201 bytes --]
Closed issue by Veyrdite on void-packages repository
https://github.com/void-linux/void-packages/issues/25584
Description:
### Problem
Printing from Firefox (to a real printer or to a PDF) any page with a font-family of 'Helvetica' leads to this:
![with_adobehelvetica](https://user-images.githubusercontent.com/6168874/95931776-c78de780-0e15-11eb-944f-c29ec91780e3.png)
It should instead look like this:
![without_adobehelvetica](https://user-images.githubusercontent.com/6168874/95931796-d4124000-0e15-11eb-8d64-d0f4c4bcceed.png)
A lot of older-style websites (including a lot of invoices) use Helvetica. Absolutely everything ends up garbled like this; most often making it completely unreadable.
Chromium is not affected by this issue, only Firefox.
This problem has been around for a really long time (a decade? I had the same problem in Arch Linux many years back) but I have only recently discovered the cause.
### Cause & workaround
Firefox cannot handle the Helvetica fonts included in packages font-adobe-100dpi and font-adobe-75dpi.
Elsewhere (where? link!) I've read advice that you should not be installing these packages, however on Void they are dependencies of Xorg so that is not an option:
```
$ sudo xbps-remove font-adobe-100dpi font-adobe-75dpi
font-adobe-100dpi-1.0.3_6 in transaction breaks installed pkg `xorg-fonts-7.6_5'
font-adobe-75dpi-1.0.3_6 in transaction breaks installed pkg `xorg-fonts-7.6_5'
Transaction aborted due to unresolved dependencies.
$ sudo xbps-remove font-adobe-100dpi font-adobe-75dpi xorg-fonts
xorg-fonts-7.6_5 in transaction breaks installed pkg `xorg-7.6_5'
Transaction aborted due to unresolved dependencies.
```
As a workaround you can manually remove the offending fonts:
`$ sudo rm /usr/share/fonts/X11/*/helv*`
Firefox will then print perfectly.
### Solutions
I can think of several approaches, but I don't know what would be best.
1. Split xorg-fonts into xorg-fonts-minimal and xorg-fonts-all, so these adobe fonts are not installed by default. (I _think_ this is how other distros handle this?)
2. Fontconfig magic?
3. Complain upstream to Firefox
4. Patch firefox
next prev parent reply other threads:[~2022-05-06 2:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-14 1:20 [ISSUE] Firefox printing is sometimes garbled due to " Veyrdite
2020-10-14 1:40 ` Firefox printing is sometimes garbled due to Helvetica in " ericonr
2020-10-14 1:41 ` ericonr
2021-11-18 9:37 ` orlovw
2022-04-21 2:12 ` github-actions
2022-05-06 2:08 ` github-actions [this message]
2022-09-12 8:58 ` Veyrdite
2022-09-12 8:59 ` Veyrdite
2022-09-12 8:59 ` Veyrdite
2022-09-12 8:59 ` Veyrdite
2022-09-12 10:06 ` paper42
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220506020801.a9fR8aIk1Ic7Sw1Hx8Jp8K0k98js1Ejuh06yc_Ee6Ms@z \
--to=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).