Comment 8 for bug 1874842

Revision history for this message
Juozas Pocius (juozaspo) wrote : Re: Fonts installed using msttfcorefonts package (ttf-mscorefonts-installer) are not detected by some sites

Updated the css workaround with correct font names, now works with all combinations of bold/italic, including test html below
@font-face {
 font-family: Helvetica;
 src: local('Noto Sans Regular');
 font-weight: normal;
 font-style: normal;
}
@font-face {
 font-family: Helvetica;
 src: local('Noto Sans Italic');
 font-weight: normal;
 font-style: italic;
}
@font-face {
 font-family: Helvetica;
 src: local('Noto Sans Bold');
 font-weight: bold;
 font-style: normal;
}
@font-face {
 font-family: Helvetica;
 src: local('Noto Sans Bold Italic');
 font-weight: bold;
 font-style: italic;
}
Test html page
<html>
 <head>
  <title>Test</title>
  <style>
   * {
    font-family: Helvetica;
   }
  </style>
 </head>
 <body>
  <h1>Helvetica Test</h1>
  <p>Regular <i>Italic</i> <b>Bold <i>Bold Italic</i></b></p>
 </body>
</html>