Font awesome y derivados en FF e IE

15 views
Skip to first unread message

Jorge Tarrero

unread,
Jul 2, 2014, 9:58:51 AM7/2/14
to sif...@googlegroups.com
Buenas,

Se ve que Firefox bloquea los archivos de fuentes típicos de herramientas como font awesome, impidiendo su funcionamiento.

Toni me ha pasado algunos posts con soluciones al problema, y al final he sacado un apaño en forma de archivo de configuración para apache.

Simplemente copiad lo siguiente a un archivo .conf cualquiera dentro de vuestro "/etc/httpd/conf.d":

AddType application/font-woff woff
AddType application/vnd.ms-fontobject eot

AddType application/x-font-ttf ttc ttf
AddType font/opentype otf

AddType image/svg+xml svg svgz
AddEncoding gzip svgz

<FilesMatch ".(ttf|otf|eot|woff)$">
  <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
  </IfModule>
</FilesMatch>

Esto habilita un "auto-CORS" al detectar un archivo de tipo TTF, OTF, EOT o WOFF.

Tras esto, un reinicio de Apache debería bastar.

Saludos!

--
Jorge T.M.

Albert Garcia

unread,
Jul 2, 2014, 10:02:32 AM7/2/14
to sif...@googlegroups.com
Thx por el tip Jorge! ;-)

--
You received this message because you are subscribed to the Google Groups "SIFO, PHP framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sifophp+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sergio Ambel Santoyo

unread,
Jul 2, 2014, 10:43:26 AM7/2/14
to sifophp
Gracias Jorge


--

Toni Pinel

unread,
Jul 2, 2014, 12:46:21 PM7/2/14
to sif...@googlegroups.com
Efectivamente, muchas gracias :)
Reply all
Reply to author
Forward
0 new messages