FontAwesome fails to load fonts locally and in electron app

前端 未结 8 1470
野的像风
野的像风 2020-12-14 15:09

I have downloaded FontAwesome using npm and then copied the css-file and the fonts into the right folders in the root-diretory of my electron-application using grunts copy t

8条回答
  •  盖世英雄少女心
    2020-12-14 15:25

    I had a similar issue (perhaps this answer will help someone). I use Maven to build projects (Java + JS). Maven Filter Plugin corrupted binary font files. I had to add includes and excludes:

        
            
                ${project.sources}
                true
                
                    **/*.woff
                    **/*.ttf
                
            
            
                ${project.sources}
                false
                
                    **/*.woff
                    **/*.ttf
                
            
        
    

提交回复
热议问题