From f49f0f2afaa267897827cddfdcec0475a6c1e928 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Thu, 27 Jul 2023 22:23:23 +0200 Subject: [PATCH] =?UTF-8?q?fonts-x-org:=20Remove=20Adobe=E2=80=99s=20Helve?= =?UTF-8?q?tica=20fonts=20confusing=20pdf.js=20used=20by=20Firefox?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This works around a Mozilla Firefox regression from 114.0 to 115.0. Firefox was upgraded from 114.0 to 115.0 around July 5th, 2023, and until now we had two problem reports. It’s actually a [regression][1] [in][2] [pdf.js][3], used to display PDF files inside the browser. Evince or other PDF viewers do not have the problem. The problem is, that for PDF documents using Helvetica, but not embedding the font, pdf.js chooses the X.Org font, despite Fontconfig matching *Helvetica* to *Nimbus Sans L*: $ fc-match Helvetica n019003l.pfb: "Nimbus Sans L" "Regular" As downgrading Firefox from 115.0.2 to 114.0 is unsupported by Mozilla for profiles – a warning is shown, and you need to start it with `--allow-downgrade` – remove the likely unused Helvetica fonts confusing Firefox/pdf.js. Resolves: https://github.molgen.mpg.de/mariux64/bee-files/issues/2933 [1]: https://bugzilla.mozilla.org/show_bug.cgi?id=1845551 [2]: https://bugzilla.mozilla.org/show_bug.cgi?id=1839860 [3]: https://github.com/mozilla/pdf.js/commit/53134c0c0bb2d19244dd8c31aa4e8e6d01a657e4 --- fonts-x-org.be0 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fonts-x-org.be0 b/fonts-x-org.be0 index 35dddc30a..b9a6dcb5f 100755 --- a/fonts-x-org.be0 +++ b/fonts-x-org.be0 @@ -1,6 +1,6 @@ #!/usr/bin/env beesh -# BEE_VERSION fonts-x-org-1.0-0 +# BEE_VERSION fonts-x-org-1.0-1 BEE_EXTRACT_STRIP=0 @@ -79,6 +79,8 @@ mee_install() { cd $b start_cmd make ${BEE_MAKEFLAGS} install DESTDIR=${D} "$@" done + # Remove Helvetica fonts confusing pdf.js (used by Firefox) + start_cmd rm ${D}${DATADIR}/fonts/X11/*dpi/helv* } #mee_install_post() {