Skip to content

Fira Sans is not loaded in the defined cases #907

Description

@oeninghe-dataport

Describe the bug

Fira Sans is not loaded in the cases where it should be loaded in https://github.com/Dataport/polar/blob/next/src/core/utils/loadKern.ts#L41.

It is loaded if a default font family is explicitly set, but not loaded if it is undefined.

Expected behavior

Fira Sans is loaded if default font family is undefined.
If it is set explicitly to 'Fira Sans', we expect the environment to load the font.

Steps to reproduce

  1. Add a console.log within the linked if statement
  2. Try snowbox with a theme that either defines a font that is Fira Sans or something else or does not define a font.

Screenshots

No response

Desktop

No response

Smartphone

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions