Reply To: Set relative font path

Home Forums Use Any Fonts Set relative font path Reply To: Set relative font path



I actually fond a solution. for those who encounter the same problem: You need to put this in your .htaccess file (change the URL…):

<IfModule mod_headers.c>
<FilesMatch “\.(eot|font.css|otf|ttc|ttf|woff)$”>
Header set Access-Control-Allow-Origin “”
<IfModule mod_mime.c>
# Web fonts
AddType application/font-woff woff
AddType application/ eot

# Browsers usually ignore the font MIME types and sniff the content,
# however, Chrome shows a warning if other MIME types are used for the
# following fonts.
AddType application/x-font-ttf ttc ttf
AddType font/opentype otf

# Make SVGZ fonts work on iPad:
AddType image/svg+xml svg svgz
AddEncoding gzip svgz