Extended Latin characters scale incorrectly on Linux
- Dominant language
- HTML
- Stars
- 20.5k
- Forks
- 2.9k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 95
Description
Hi,
I have a bit of a weird issue with fonts embedded from Google Fonts. Extended Latin (and possibly more) characters don't scale properly - depending on the font size, they might have different height than regular Latin. It makes the text look uneven. Interestingly, it doesn't look like this happens on Windows - I could reproduce this on Linux only (Manjaro, Ubuntu).
Take this font for example:
https://fonts.google.com/specimen/PT+Serif?preview.text=E%C4%98&preview.text_type=custom
On Windows, the font scales unevenly, as if snapping to a predefined height (I assume this is the correct behavior):
https://user-images.githubusercontent.com/9151566/126958644-6c059ff6-f818-4fdd-815b-a5b036857660.mp4
On Linux however, the regular Latin characters change their height the same as on Windows, but the extended characters change their height a bit more smoothly:
https://user-images.githubusercontent.com/9151566/126958841-53ed566c-b108-4373-ba2e-823e7978b6be.mp4
(please note that in order for this bug to manifest on Google Fonts website, you need to click on the "EĘ" text below "Regular 400", etc. to enable text editing)
Is that a bug in Google Fonts? How can this be resolved?
Contributor guide
Assessment
This issue has not been assessed yet.