K
K
ksurill2019-11-08 13:37:52
Fonts
ksurill, 2019-11-08 13:37:52

What can cause the font to jump?

Good afternoon, I ran into a problem with a jumping font.
A font was chosen in google fonts - ProstoOne , but it turned out that it jumps on different font sizes, i.e. at 19px the letters are the same size, but at 21px they are different.
3d20fb6b5c.jpg
It is clear that the easiest way to solve the problem is to choose a different font.
But I wonder if there is any solution that can fix this problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Chesnokov, 2019-11-08
@cesnokov

It's not the font jumping, it's your browser not scaling and anti-aliasing it correctly. Play around with CSS styles like this:

text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;

S
Shamil_324, 2021-06-06
@Shamil_324

The browser perceives third-party fonts secondarily, so you need to add a tag to the heag

<link rel="preload" href="/fonts/shrift.woff2" as="font">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question