@font-face not working on chrome

后端 未结 4 1810
日久生厌
日久生厌 2020-12-03 10:40

I\'m using the latest version of google chrome and it won\'t render font face at all.

I\'m running Debian Linux, and all other browsers , including Chromium , show

4条回答
  •  攒了一身酷
    2020-12-03 11:13

    @font-face {    
    font-family: 'FONT-NAME';
    src: url('RELATIVE-FONT-URL') format('FONT-FORMAT');
    }
    
    div {
        font-family: 'FONT-NAME';
        font-weight: normal;
        font-style: normal;
    }
    

    Adding the font-weight and font-style with normal in value worked for me.

提交回复
热议问题