Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertical alignment issues #788

Open
cprussin opened this issue Jan 3, 2025 · 0 comments
Open

Vertical alignment issues #788

cprussin opened this issue Jan 3, 2025 · 0 comments

Comments

@cprussin
Copy link

cprussin commented Jan 3, 2025

Describe the bug
Inter is not centered in line height in many font size / line height combinations.

To Reproduce
Steps to reproduce the behavior:

  1. Look at https://rsms.me/inter/lab/?draw-sample-bg=1&sample=test

  2. Try many different combinations; e.g.:

    • font size 12 / line height 14 (zoomed in):
      screenshot-2025-01-02-204630

    • font size 12 / line height 12 (zoomed in):
      screenshot-2025-01-02-204820

    • font size 14 / line height 18 (zoomed in):
      screenshot-2025-01-02-204917

More combinations resulting in off-center lines can easily be found using https://codepen.io/rsms/pen/WNRRXYr.

For comparison, here's the system font at font size 12 / line height 12:
screenshot-2025-01-02-205205

The system font appears similarly correctly vertically aligned at other combinations where Inter is not.

Expected behavior
Text to be centered vertically

Environment

  • OS: Linux (Linux aries 6.6.67 #1-NixOS SMP PREEMPT_DYNAMIC Thu Dec 19 17:11:37 UTC 2024 x86_64 GNU/Linux)
  • App that renders the font: Brave browser
  • Version of font: Whatever version is bundled with nextjs (so probably google fonts) AND ALSO the one on rsms.me

Additional context
Probably related to #361 where I found the above tools and #700

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant