O
O
oink2019-08-23 21:45:02
css
oink, 2019-08-23 21:45:02

Different character widths of the same font in different browsers: why and how to fix?

Good afternoon, I have a problem that, it seems to me, is quite noob, but I have never encountered it, and I could not google it either. The Roboto font is connected to the page that I'm typesetting, and for some reason in Chrome (in Safari there is no way to check it, in the rest as it should) a font with a clearly defined size and line height "flattens" horizontally. And only in this place on the page, then the same font is normal everywhere. The parent block has a width of auto, flex. What could be the problem? I don’t give a link to Codepen, because It was not possible to repeat, apparently, it stretches from somewhere very far away.
Bottom Chrome, top FF:
5d602ff7e54ec055845034.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
oink, 2019-08-23
@oink

It turned out that the font was replaced with a locally installed Roboto Condensed. Why, why exactly in Chrome and in this particular place is still a mystery. Removing it from the system helped (I still had to go into the registry, because it was simply not given through the control panel).

A
Arseny, 2019-08-23
Matytsyn @ArsenyMatytsyn

It looks more like the font is being dropped. Check with a debugger (F12) and how the fonts are connected. If there is a problem with styles, the debugger will show it. Yes, and climbing there, you can find a lot on the case.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question