demo:

引入自定义字体,chrome警告Failed to decode downloaded font,Edge可以显示

 

警告:

引入自定义字体,chrome警告Failed to decode downloaded font,Edge可以显示

原因:

ttf字体文件chrome不识别,需进行格式转换

工具:

这些站点能把你上传的字体转换成任意格式,包括 WOFF。

Online Font Converter
https://onlinefontconverter.com/
Transfonter
https://transfonter.org/
Simple Online Font Converter
https://font-converter.net/en
Font Converter Tools
https://www.onlinewebfonts.com/tools
Webfont Generator
https://www.fontsquirrel.com/tools/webfont-generator
Everything Fonts
https://everythingfonts.com/tags/conversion/tools#
Online font converter
https://www.fontconverter.org/
在线字体文件转换器(我用的这个,转为woff格式就可以)
https://convertio.co/zh/font-converter/
 
修改之后:
引入自定义字体,chrome警告Failed to decode downloaded font,Edge可以显示

 

 效果图:

引入自定义字体,chrome警告Failed to decode downloaded font,Edge可以显示

 

 搞定啦!!!

 

相关文章:

  • 2021-04-30
  • 2022-01-14
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2021-04-27
  • 2021-11-19
猜你喜欢
  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
  • 2021-04-10
  • 2021-09-16
  • 2021-10-11
相关资源
相似解决方案