User Tools

Site Tools


css:font-face

Font-Face

Primero de todo poner el formato EOT para cargar en el src.

Truco para compatibilidad en varios navegadores incluyendo Android e IE < 9. Poner el carácter '#' para delimitar los sucesivos URL en el atributo src.

Código de ejemplo:

@font-face {
    font-family:InYourFace;
    src: url('Ubuntu-B.eot#') format('☺'),
        url('Ubuntu-B.woff') format('woff'),
        url('Ubuntu-B.ttf') format('truetype'),
        url('Ubuntu-B.svg#webfontssbCkuz5') format('svg');
}
css/font-face.txt · Last modified: 2011/02/04 11:22 by nejo