Skip to content

Wrong generated values for 'Rubik' and 'Inconsolata' (backup: 'Arial') #564

@anxpara

Description

@anxpara

🐛 The bug

The line heights seem to be correct, but the character widths are wrong. I'm also using Roboto as a backup for android, but haven't checked it yet. I'm too lazy to make a stackblitz repro, here are the generated values:

@font-face {
  font-family: 'Rubik';
  src: url('/fonts/Rubik.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Rubik fallback';
  src: local('Arial');
  size-adjust: 104.9796%;
  ascent-override: 89.0649%;
  descent-override: 23.8141%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Inconsolata';
  src: url('/fonts/Inconsolata.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Inconsolata fallback';
  src: local('Arial');
  size-adjust: 112.1577%;
  ascent-override: 76.5886%;
  descent-override: 16.9404%;
  line-gap-override: 0%;
}

🛠️ To reproduce

asdf

🌈 Expected behaviour

asdf

ℹ️ Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions