Skip to content

Hard coded font-weight in .mx_Dialog interacts poorly with fonts that support "Light" weights #21171

@globau

Description

@globau

Steps to reproduce

  1. Install Fira Sans font, or any other font that supports Light or variable weights
  2. Change the Element font to Fira Sans

Outcome

What did you expect?

Readable text, and an accurate preview.

More specifically the .mx_Dialog class should not specify font-weight: 300, which maps to OpenType's "Light" weight name.
The default font, Inter, does not support this font-weight, so dialogs are rendered identically to the default font-weight of 400.

What happened instead?

Note that the preview at the top of the screenshot is incorrect - the message list doesn't specify a font weight:

Operating system

No response

Application version

No response

How did you install the app?

No response

Homeserver

No response

Will you send logs?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AppearanceO-UncommonMost users are unlikely to come across this or unexpected workflowS-TolerableLow/no impact on usersT-Defect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions