Font Awesome 5 font-family issue

前端 未结 16 2761
深忆病人
深忆病人 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:45

    I had to set searchPseudoElements to to true to get it working in Angular5.

    import fontawesome from '@fortawesome/fontawesome';
    ...
    fontawesome.config.searchPseudoElements = true;
    ...
    content: "\f12a";
    font-family: 'Font Awesome 5 Solid';
    

提交回复
热议问题