Github messages for voidlinux
 help / color / mirror / Atom feed
From: Veyrdite <Veyrdite@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [ISSUE] Firefox printing is sometimes garbled due to font-adobe-100dpi and font-adobe-75dpi (which are deps of xorg)
Date: Wed, 14 Oct 2020 03:20:35 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-25584@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1972 bytes --]

New issue by Veyrdite on void-packages repository

https://github.com/void-linux/void-packages/issues/25584

Description:
### Problem

Printing (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.

Chromium is not affected by this issue, only Firefox.

### 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


             reply	other threads:[~2020-10-14  1:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-14  1:20 Veyrdite [this message]
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 ` [ISSUE] [CLOSED] " github-actions
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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-25584@inbox.vuxu.org \
    --to=veyrdite@users.noreply.github.com \
    --cc=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).