Cyrillic letters of Montserrat font from Google Fonts is rendered wrongly on iOS when lang attribute is not "en"

Viewed 2180

Initial setup:

<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&amp;display=swap">
html {
    font-family: Montserrat, sans-serif
}

Looks bad when [lang] is set to 'ru' or any other value:

<html lang='ru'>

кириллические символы

Looks good when [lang] is set to 'en':

<html lang='en'>

кириллические символы

Looks good when [lang] is not set:

<html>

кириллические символы

This is how it looks with 'font-family: sans-serif':

кириллические символы

I faced this issue only on my iPhone with iOS 14.0.1 in any web browser (since all browsers on iOS is based on WebKit).

It is not reproduced on Safari 14 on macOS, or any other browser.


Similar issue: Cyrillic characters displayed wrongly when using Montserrat in Bulgarian

1 Answers

Try this in CSS

* {
  -webkit-locale: auto;
  white-space: normal;
}

Works for me

Related