Failed to decode downloaded font和OTS parsing error: Failed to convert *** font to ***

Posted jerrytomcat

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Failed to decode downloaded font和OTS parsing error: Failed to convert *** font to ***相关的知识,希望对你有一定的参考价值。

使用Springboot+ bootstrap 开发做项目,在写页面时候出现按钮不展示,查看页面出现下面的我问题:

因为经过maven的filter,会破坏font文件的二进制文件格式,到时前台解析出错。

<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<excludes>
<exclude>static/fonts/**</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<includes>
<include>static/fonts/**</include>
</includes>
</resource>
</resources>















以上是关于Failed to decode downloaded font和OTS parsing error: Failed to convert *** font to ***的主要内容,如果未能解决你的问题,请参考以下文章

解决 Failed to decode downloaded font

解决 spring boot Failed to decode downloaded font

layui图标不显示 提示Failed to decode downloaded font解决办法

Element UI + Java Web—— Failed to decode downloaded font:xxx.woff

Element UI + Java Web—— Failed to decode downloaded font:xxx.woff

Element UI + Java Web—— Failed to decode downloaded font:xxx.woff