Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

custom @font-face does not load in chrome (chrome custom fonts not rendering)

custom @font-face does not load in chrome(chrome custom fonts not rendering) Using custom fonts using CSS

@font-face {
    font-family:'gotham-rounded-medium';
    src:url('fonts/gothumrounded_medium/gotham-rounded-medium.eot');
    src:url('fonts/gothumrounded_medium/gotham-rounded-medium.eot?#iefix')format("embedded-opentype"),
        url('fonts/gothumrounded_medium/gotham-rounded-medium.woff')format("woff"),
        url('fonts/gothumrounded_medium/gotham-rounded-medium.ttf')format("truetype"),
        url('fonts/gothumrounded_medium/gotham-rounded-medium.svg')format("svg");
    font-weight:400;
    font-style:normal
}

.custom_font{
   font-family:'gotham-rounded-medium', arial, sans-serif;
}

enter image description here

The texts are showing only when you resize the screen window.

So please is there something that it can be done to solve this issue?

like image 637
Dnyaneshwar Shedge Avatar asked Sep 25 '22 08:09

Dnyaneshwar Shedge


1 Answers

In my case the problem was connected with multiple inclusion of the same @font-face made by different Angular 2 modules. Please see:

https://bugs.chromium.org/p/chromium/issues/detail?id=582198#c20

like image 182
marekozw Avatar answered Oct 11 '22 12:10

marekozw