@font-face not working on chrome

后端 未结 4 1811
日久生厌
日久生厌 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:27

    Try this

       src:url('DejaWeb-Bold.ttf') format('truetype'), 
    

    Also if the fonts are available in other different format from where you got them then I suggest writing all the cross browser compatibly in the following manner

        @font-face {
         font-family: "Dejaweb";
         src: url("DejaWeb-Bol.eot") format('embedded-opentype'), /* EDIT correction on this line */
         url('DejaWeb-Bol.woff') format('woff'), /* Modern Browsers */
         url('DejaWeb-Bol.ttf') format('truetype'), /* Safari, Android, iOS */
         url('DejaWeb-Bol.svg#Dejaweb') format('svg'); /* Legacy iOS; correction on this line */
         font-weight:bold;
        font-style:normal;
      }
    

提交回复
热议问题