Package: cups-filters Version: 1.0.68-1 Severity: normal Tags: patch Hi again,
cups-filters uses fontconfig to find a suitable monospaced font for rendering text to pdf. However, this font is currently hard-coded to FreeMono. This means, that if the FreeMono font package is installed, users have no chance to change the font used for text rendering by means of fontconfig rules anymore. FreeMono will *always* be preferred, there is no choice. By changing the hard-coded request for FreeMono to the generic "monospace" alias, fontconfig returns the next best suitable monospaced font that is available on the system. This might be FreeMono or any other font. The actual preference of fonts, however, can be configured per-system by means of fontconfig configuration files, which is the true advantage of this approach. The attached patch does exact this. Please consider applying it. Thanks, Fabian -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (990, 'testing'), (500, 'experimental'), (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.0.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages cups-filters depends on: ii bc 1.06.95-9 ii cups-filters-core-drivers 1.0.68-1 ii ghostscript 9.06~dfsg-2 ii libc6 2.19-18 ii libcups2 1.7.5-11 ii libcupsfilters1 1.0.68-1 ii libcupsimage2 1.7.5-11 ii libfontconfig1 2.11.0-6.3 ii libfontembed1 1.0.68-1 ii libgcc1 1:5.1.1-7 ii libijs-0.35 0.35-10 ii liblcms2-2 2.6-3+b3 ii libpoppler46 0.26.5-2 ii libqpdf13 5.1.2-2 ii libstdc++6 5.1.1-7 Versions of packages cups-filters recommends: ii colord 1.2.1-1+b2 Versions of packages cups-filters suggests: ii foomatic-db-compressed-ppds [foomatic-db] 20150411-1 -- no debconf information
diff --git a/pdf.utf-8~monospace b/pdf.utf-8 index 1280f25..c1c3d68 100644 --- a/pdf.utf-8~monospace +++ b/pdf.utf-8 @@ -28,5 +28,5 @@ charset utf8 # printing. # -0000 04FF ltor single monospace monospace:bold monospace:oblique monospace:bold:oblique -0500 05FF rtol single monospace +0000 04FF ltor single FreeMono FreeMono:bold FreeMono:oblique FreeMono:bold:oblique +0500 05FF rtol single FreeMono