Home » Android » Android Chrome – issue with font-family and any custom font

Android Chrome – issue with font-family and any custom font

Posted by: admin November 1, 2017 Leave a comment

Questions:

For some reason Android Chrome refuses to download alternative font, if fonts list starts with custom font, ‘Courier New’ or Courier in my case. I’ve tested on two phones, first – with installed ‘Courier New’ and second – without it, and result is the same.

CSS is OK, because everything works in Firefox – Courier is used, if it is present on the system, otherwise alternative font is downloaded.

CSS fragment:

@font-face {
  font-family: 'Nimbus Mono';
  src: url('../fonts/nimbus-mono.woff2') format('woff2'), url('../fonts/nimbus-mono.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
body {
    font-family: 'Courier New', Courier, 'Nimbus Mono', monospace;
    font-weight: normal;
    font-style: normal;
}

Is it a bug or?..

Answers: