[英]issue with font-face firefox and IE
In a website i have entered the font "Helvetica", using the font-face function with Google Chrome and Safari no problem while, when i feel to see the web site in Firefox and IE i have a problem. 在一个网站中,我输入了字体“ Helvetica”,并在Google Chrome和Safari中使用了字体功能,而当我感觉在Firefox和IE中看到该网站时,我遇到了问题。 The browser loads the font, but instead of seeing the characters i see incomprehensible dashes and rows .
浏览器将加载字体,但是我看不到字符,而是看到了难以理解的破折号和行。 Searching in Google i have found this solution;
我在Google搜索中找到了这种解决方案; i have changed the Aruba's .htaccess with the following commands:
我使用以下命令更改了Aruba的.htaccess:
# BEGIN REQUIRED FOR webfonts
AddType font/ttf .ttf
AddType font/eot .eot
AddType font/otf .otf
AddType font/woff .woff
<FilesMatch "\.(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</ IfModule>
</ FilesMatch>
# END REQUIRED FOR webfonts
this in theory had to solve my problem, but this hasn't happened. 从理论上讲,这必须解决我的问题,但这并未发生。 Does anyone have any other solution for it?
有人有其他解决方案吗?
There shouldn't be a space before or after the /
in the MIME type, and the .
MIME类型中的
/
之前和之后不应有空格,而.
belongs immediately before the extension, not after the MIME type. 属于紧接扩展名之前,而不是MIME类型之后。 And I'd make them all lowercase, too.
而且我也会将它们全部小写。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.