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. 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; i have changed the Aruba's .htaccess with the following commands:
# 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 .
belongs immediately before the extension, not after the MIME type. And I'd make them all lowercase, too.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.