<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Package: fontconfig</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Version: 2.13.1-4.2</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Severity: normal</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Dear Maintainer,</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">TLDR: I needed to manually run dpkg-reconfigure to properly be able to print a github page from firefox</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I run into trouble when I tried printing from firefox a github page. After some investigation I discovered that font-family was resolved to helvetica and that helvetica was a bitmap font in my bullseye system (upgraded from buster long time ago).</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Before the dpkg-reconfigure, fc-match resolved like this:</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">```</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">$ fc-match -s helvetica</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">helvR12-ISO8859-1.pcf.gz: "Helvetica" "Regular"</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">helvR12.pcf.gz: "Helvetica" "Regular"</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">NimbusSans-Regular.otf: "Nimbus Sans" "Regular"</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">n019003l.pfb: "Nimbus Sans L" "Regular"</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">texgyreheros-regular.otf: "TeX Gyre Heros" "Regular"</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">LiberationSans-Regular.ttf: "Liberation Sans" "Regular"</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">...</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">```</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">After this I manually run `sudo dpkg-reconfigure fontconfig fontconfig-config` and I remember one of the options was related to bitmap fonts. These are the debconf values now:</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Name: fontconfig/enable_bitmaps</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Template: fontconfig/enable_bitmaps</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Value: false</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Owners: fontconfig-config</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Flags: seen</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Name: fontconfig/hinting_style</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Template: fontconfig/hinting_style</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Value: hintslight</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Owners: fontconfig-config</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Flags: seen</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Name: fontconfig/hinting_type</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Template: fontconfig/hinting_type</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Value: Native</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Owners: fontconfig-config</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Flags: seen</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Name: fontconfig/subpixel_rendering</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Template: fontconfig/subpixel_rendering</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Value: Automatic</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Owners: fontconfig-config</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Flags: seen</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">After this, fc-match resolves like this:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">```</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">$ fc-match -s helvetica                             </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">NimbusSans-Regular.otf: "Nimbus Sans" "Regular"</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">n019003l.pfb: "Nimbus Sans L" "Regular"</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">texgyreheros-regular.otf: "TeX Gyre Heros" "Regular"</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">LiberationSans-Regular.ttf: "Liberation Sans" "Regular"</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">LiberationSans-Regular.ttf: "Liberation Sans" "Regular"</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">DejaVuSans.ttf: "DejaVu Sans" "Book"</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">DejaVuSans-Bold.ttf: "DejaVu Sans" "Bold"</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">...</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">```</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Now firefox resolves its font-family `font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";` to sans-serif and printing to PDF is nice and readable.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I had to learn some things to get to this conclusion and I hope this bug report can make life easier for anyone facing a similar problem. I wonder if it is possible to include some kind of fix in fontconfig packages in order to avoid the problem.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">After taking a look at current reported bugs I found that the following may be related:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">* <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=783609">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=783609</a> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">* <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776801">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776801</a> </p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Unfortunately I found these after having solved the problem so I cannot point to them directly. If you agree I can merge all these.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Note: On my other laptop running sid, I have not found this problem.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Regards,</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">-- System Information:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Debian Release: 11.5</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">  APT prefers stable-updates</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'stable')</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Architecture: amd64 (x86_64)</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Foreign Architectures: armel, i386, arm64</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Kernel: Linux 5.19.0-0.deb11.2-amd64 (SMP w/8 CPU threads; PREEMPT)</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8), LANGUAGE not set</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Shell: /bin/sh linked to /usr/bin/dash</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Init: systemd (via /run/systemd/system)</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">LSM: AppArmor: enabled</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Versions of packages fontconfig depends on:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">ii  fontconfig-config  2.13.1-4.2</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">ii  libc6              2.31-13+deb11u5</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">ii  libfontconfig1     2.13.1-4.2</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">ii  libfreetype6       2.10.4+dfsg-1+deb11u1</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">fontconfig recommends no packages.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">fontconfig suggests no packages.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">-- no debconf information</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><br /></p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">-- </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Raúl Sánchez Siles</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">SW Engineer</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">K-LAGAN EID </p>
<br /></body>
</html>