升级到FontAwesome Pro在ASP.NET Zero (Angular)的fas far图标显示为正方形。

问题描述 投票:0回答:1

我被要求用Font Awesome Pro图标升级一个ASP.NET Zero项目。

我按照这里的步骤进行了升级 安装专业版的Font Awesome

在添加以下内容后,在 angular.json

"node_modules/@fortawesome/fontawesome-pro/css/all.min.css"

我发现有些专业字体不想专门显示一些实心的(fas)和常规(far)字体。

asp.net angular font-awesome aspnetboilerplate zero
1个回答
1
投票

要解决这个问题,请将供应商所包含的Font Awesome Free css从"... "中移除。src\assets\metronic\vendors\global\vendors.bundle.css 档案

enter image description here

请务必将第15行的尾部注释也去掉。

enter image description here

在上述步骤之后,请确保替换所有的 Font Awesome 5 FreeFont Awesome 5 Pro 特别是在.css文件中被引用的地方

请注意,我发现了一些SVG文件,其中包含了 "Font Awesome 5 Free "的字样,我认为应该保留在那里。

© www.soinside.com 2019 - 2024. All rights reserved.