Package: fonts-urw-base35
Version: 20200910-8
Severity: normal

I just noticed something weird in my (Firefox) browser: on a page with
Palatino fonts, lines of text containing italic text are taller than lines
without.

In this case, “Palatino” means the URW “P052” font.

The difference in height seems to arise because the browser picks P052’s OTF
version for Roman (upright) text, and the Adobe Type 1 (.pfb) version for
Italic text.

I was able to fix the problem by adding a user fontconfig configuration file
that rejects the Type 1 fonts (I copied this, funnily enough, from TeX Gyre
Pagella’s fontconfig files).

There are two problems here:

1. The fonts have different heights in different formats, it seems. I’m not
suggesting you try to fix this, as presumably changing the metrics is a
no-no.

2. fontconfig seems to pick a font format for a given name
non-deterministically. (And that’s not this package’s fault!)

However, this package can fix the problem, by adding a similar fontconfig
file to that used by TeX Gyre Pagella. (There’s no need for fontconfig to
supply Type 1 fonts on a modern system, surely?)

The configuration file that I would copy is
/etc/fonts/conf.avail/65-fonts-texgyre.conf in package fonts-texgyre

-- System Information:
Debian Release: trixie/sid
  APT prefers noble-updates
  APT policy: (500, 'noble-updates'), (500, 'noble-security'), (500, 'noble'), 
(100, 'noble-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.14.0-37-generic (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages fonts-urw-base35 depends on:
ii  xfonts-utils  1:7.7+6build3

fonts-urw-base35 recommends no packages.

Versions of packages fonts-urw-base35 suggests:
ii  fonts-freefont-otf  20211204+svn4273-2
ii  fonts-freefont-ttf  20211204+svn4273-2
ii  fonts-texgyre       20180621-6

-- no debconf information

Reply via email to