Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Firefox printing is sometimes garbled due to font-adobe-100dpi and font-adobe-75dpi (which are deps of xorg)
@ 2020-10-14  1:20 Veyrdite
  2020-10-14  1:40 ` Firefox printing is sometimes garbled due to Helvetica in " ericonr
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Veyrdite @ 2020-10-14  1:20 UTC (permalink / raw)
  To: ml

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-09-12 10:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-14  1:20 [ISSUE] Firefox printing is sometimes garbled due to font-adobe-100dpi and font-adobe-75dpi (which are deps of xorg) 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 ` [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

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).