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

* Re: Firefox printing is sometimes garbled due to Helvetica in font-adobe-100dpi and font-adobe-75dpi (which are deps of xorg)
  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 ` ericonr
  2020-10-14  1:41 ` ericonr
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ericonr @ 2020-10-14  1:40 UTC (permalink / raw)
  To: ml

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

New comment by ericonr on void-packages repository

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

Comment:
You can also add the packages to a [xbps.d{5}](https://man.voidlinux.org/xbps.d.5) file.

1) I think removing them entirely wouldn't be terrible.
3) definitely

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

* Re: Firefox printing is sometimes garbled due to Helvetica in font-adobe-100dpi and font-adobe-75dpi (which are deps of xorg)
  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
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ericonr @ 2020-10-14  1:41 UTC (permalink / raw)
  To: ml

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

New comment by ericonr on void-packages repository

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

Comment:
You can also add the packages to a [xbps.d{5}](https://man.voidlinux.org/xbps.d.5) file.

- for 1, I think removing them entirely wouldn't be terrible.
- for 3, definitely

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

* Re: Firefox printing is sometimes garbled due to Helvetica in font-adobe-100dpi and font-adobe-75dpi (which are deps of xorg)
  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
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: orlovw @ 2021-11-18  9:37 UTC (permalink / raw)
  To: ml

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

New comment by orlovw on void-packages repository

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

Comment:
Just faced this not a while ago, I got ugly fonts on [GitHub](https://github.com), it also uses Helvetica font. In case someone else will face this I will leave some keywords:
ugly fonts firefox void linux

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

* Re: Firefox printing is sometimes garbled due to Helvetica in font-adobe-100dpi and font-adobe-75dpi (which are deps of xorg)
  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
                   ` (2 preceding siblings ...)
  2021-11-18  9:37 ` orlovw
@ 2022-04-21  2:12 ` github-actions
  2022-05-06  2:08 ` [ISSUE] [CLOSED] " github-actions
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: github-actions @ 2022-04-21  2:12 UTC (permalink / raw)
  To: ml

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

New comment by github-actions[bot] on void-packages repository

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

Comment:
Issues become stale 90 days after last activity and are closed 14 days after that.  If this issue is still relevant bump it or assign it.

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

* Re: [ISSUE] [CLOSED] Firefox printing is sometimes garbled due to Helvetica in font-adobe-100dpi and font-adobe-75dpi (which are deps of xorg)
  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
                   ` (3 preceding siblings ...)
  2022-04-21  2:12 ` github-actions
@ 2022-05-06  2:08 ` github-actions
  2022-09-12  8:58 ` Veyrdite
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: github-actions @ 2022-05-06  2:08 UTC (permalink / raw)
  To: ml

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


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

* Re: Firefox printing is sometimes garbled due to Helvetica in font-adobe-100dpi and font-adobe-75dpi (which are deps of xorg)
  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
                   ` (4 preceding siblings ...)
  2022-05-06  2:08 ` [ISSUE] [CLOSED] " github-actions
@ 2022-09-12  8:58 ` Veyrdite
  2022-09-12  8:59 ` Veyrdite
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Veyrdite @ 2022-09-12  8:58 UTC (permalink / raw)
  To: ml

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

New comment by Veyrdite on void-packages repository

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

Comment:
Issue still exists.  Just had to _rm /usr/share/fonts/X11/*/helv*_ again so Thunderbird could print an email as a PDF properly.

Before:
![thunderbird_helvetica_2022-09-12_before](https://user-images.githubusercontent.com/6168874/189613846-10858175-a3cf-4cf5-93eb-1835095e2a18.png)


After:
![thunderbird_helvetica_2022-09-12_after](https://user-images.githubusercontent.com/6168874/189613856-79d444f1-c848-478c-b4fd-f058f45d2690.png)




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

* Re: Firefox printing is sometimes garbled due to Helvetica in font-adobe-100dpi and font-adobe-75dpi (which are deps of xorg)
  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
                   ` (5 preceding siblings ...)
  2022-09-12  8:58 ` Veyrdite
@ 2022-09-12  8:59 ` Veyrdite
  2022-09-12  8:59 ` Veyrdite
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Veyrdite @ 2022-09-12  8:59 UTC (permalink / raw)
  To: ml

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

New comment by Veyrdite on void-packages repository

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

Comment:
Issue still exists.  Just had to ```rm /usr/share/fonts/X11/*/helv*``` again so Thunderbird could print an email as a PDF properly.

Before:
![thunderbird_helvetica_2022-09-12_before](https://user-images.githubusercontent.com/6168874/189613846-10858175-a3cf-4cf5-93eb-1835095e2a18.png)


After:
![thunderbird_helvetica_2022-09-12_after](https://user-images.githubusercontent.com/6168874/189613856-79d444f1-c848-478c-b4fd-f058f45d2690.png)




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

* Re: Firefox printing is sometimes garbled due to Helvetica in font-adobe-100dpi and font-adobe-75dpi (which are deps of xorg)
  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
                   ` (6 preceding siblings ...)
  2022-09-12  8:59 ` Veyrdite
@ 2022-09-12  8:59 ` Veyrdite
  2022-09-12  8:59 ` Veyrdite
  2022-09-12 10:06 ` paper42
  9 siblings, 0 replies; 11+ messages in thread
From: Veyrdite @ 2022-09-12  8:59 UTC (permalink / raw)
  To: ml

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

New comment by Veyrdite on void-packages repository

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

Comment:
Issue still exists, please keep open.

I just had to ```rm /usr/share/fonts/X11/*/helv*``` again so Thunderbird could print an email as a PDF properly.

Before:
![thunderbird_helvetica_2022-09-12_before](https://user-images.githubusercontent.com/6168874/189613846-10858175-a3cf-4cf5-93eb-1835095e2a18.png)


After:
![thunderbird_helvetica_2022-09-12_after](https://user-images.githubusercontent.com/6168874/189613856-79d444f1-c848-478c-b4fd-f058f45d2690.png)




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

* Re: Firefox printing is sometimes garbled due to Helvetica in font-adobe-100dpi and font-adobe-75dpi (which are deps of xorg)
  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
                   ` (7 preceding siblings ...)
  2022-09-12  8:59 ` Veyrdite
@ 2022-09-12  8:59 ` Veyrdite
  2022-09-12 10:06 ` paper42
  9 siblings, 0 replies; 11+ messages in thread
From: Veyrdite @ 2022-09-12  8:59 UTC (permalink / raw)
  To: ml

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

New comment by Veyrdite on void-packages repository

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

Comment:
Issue still exists, please keep open.

I just had to ```rm /usr/share/fonts/X11/*/helv*``` again so Thunderbird could print an email as a PDF without garbled fonts.

Before:
![thunderbird_helvetica_2022-09-12_before](https://user-images.githubusercontent.com/6168874/189613846-10858175-a3cf-4cf5-93eb-1835095e2a18.png)


After:
![thunderbird_helvetica_2022-09-12_after](https://user-images.githubusercontent.com/6168874/189613856-79d444f1-c848-478c-b4fd-f058f45d2690.png)




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

* Re: Firefox printing is sometimes garbled due to Helvetica in font-adobe-100dpi and font-adobe-75dpi (which are deps of xorg)
  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
                   ` (8 preceding siblings ...)
  2022-09-12  8:59 ` Veyrdite
@ 2022-09-12 10:06 ` paper42
  9 siblings, 0 replies; 11+ messages in thread
From: paper42 @ 2022-09-12 10:06 UTC (permalink / raw)
  To: ml

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

New comment by paper42 on void-packages repository

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

Comment:
This is documented here https://docs.voidlinux.org/config/graphical-session/fonts.html#fonts

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