Font Awesome 5 font-family issue

前端 未结 16 2801
深忆病人
深忆病人 2020-12-12 14:31

I integrated Font Awesome 5 in a project with bootstrap 4. When I recall a font via CSS it does not work. with Font Awesome 4 the code was as follows:

#mainN         


        
16条回答
  •  不知归路
    2020-12-12 14:48

    the solution is call it like normal font:

    @font-face {
    font-family: "Font Awesome 5 Free-Regular-400";
    src: url(../fonts/Font%20Awesome%205%20Free-Regular-400.otf) format("opentype");}
    

提交回复
热议问题