Skip to content

Broken vertical font alignment on Fedora #1209

@nikwen

Description

@nikwen

Describe the bug
Text is not properly vertically centered when using Firefox on Fedora 33.

To Reproduce
Steps to reproduce the behavior:

  1. Get a working installation of Fedora 33 (VM, live USB stick, etc.)
  2. In Firefox, open https://github.com/mdo
  3. See how the font is not aligned properly as marked in the screenshot below

Expected behavior
The text marked in the screenshot below should be properly vertically centered.

Screenshots

Screenshot

Desktop (please complete the following information):

  • OS: Fedora 33
  • Browser: Firefox
  • Version: 84.0

Additional context
Fedora does not ship the Helvetica and Arial fonts used by Primer.

Firefox on Fedora uses Nimbus Sans as a replacement for Helvetica:

Screenshot

If we remove Helvetica from the font declaration, the system uses Liberation Sans, which looks okay-ish:

Screenshot

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions