【发布时间】:2021-08-02 21:32:39
【问题描述】:
我必须马上说我不是专家,所以很抱歉请求您的帮助如下:
-
多年来,我一直在 Wordpress 网站上使用“Celtic (Plain):001.001”字体,没有任何问题。
-
现在有一个问题 - 在检查网站时有一个错误告诉我: “可下载字体:下载失败(字体系列:“Celtic(Plain):001.001”样式:正常重量:400 拉伸:100 src 索引:2):错误的 URI 或不允许跨站点访问来源:https://xxxxx /wp-content/themes/responsive-childtheme-master/fonts/Celtic.ttf"
-
在我的子主题的样式表中,我有这个: "@font-face {font-family:"Celtic (Plain):001.001";src:url("https://xxxx/wp-content/themes/responsive-childtheme-master/fonts/Celtic.eot?")格式(“eot”),url(“https://xxxx/wp-content/themes/responsive-childtheme-master/fonts/Celtic.woff”)格式(“woff”),url(“https://xxxx //wp-content/themes/responsive-childtheme-master/fonts/Celtic.ttf") 格式("truetype"),url("https://xxxxx/wp-content/themes/responsive-childtheme-master/fonts /Celtic.svg#Celtic") format("svg");font-weight:normal;font-style:normal;}"
-
在我的字体文件夹中,我有以下字体:Celtic.eot、Celtic.svg、Celtic.ttf、Celtic.woff。
-
我在一个网站上遇到此错误。我在其他地方也有另一个测试 Wordpress 网站,字体没有问题。
-
所以我不确定这是否是由于我安装字体或 CORS 策略脚本的方式造成的。
我在这里看到了一个类似的话题eot, woff fonts - 我想这不是一回事吗?
我真诚地希望你能提供帮助。提前致谢
【问题讨论】:
标签: wordpress fonts webfonts woff eot