@font-face {
font-family: 'League Gothic';
src: url('fonts/League_Gothic-webfont.eot');
src: url('fonts/League_Gothic-webfont.eot?#iefix') format('embedded-opentype'),
url('fonts/League_Gothic-webfont.woff') format('woff'),
url('fonts/League_Gothic-webfont.ttf') format('truetype'),
url('fonts/League_Gothic-webfont.svg#LeagueGothicRegular') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'fontello';
src: url("font/fontello.eot?43552937");
src: url("font/fontello.eot?43552937#iefix") format('embedded-opentype'), url("font/fontello.woff?43552937") format('woff'), url("font/fontello.ttf?43552937") format('truetype'), url("font/fontello.svg?43552937#fontello") format('svg');
font-weight: normal;
font-style: normal;
}
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
/*
@media screen and (-webkit-min-device-pixel-ratio:0) {
@font-face {
font-family: 'fontello';
src: url('font/fontello.svg?43552937#fontello') format('svg');
}
}
*/
@font-face {
font-family: 'fontello';
src: url("font/fontello.eot?43552937");
src: url("font/fontello.eot?43552937#iefix") format('embedded-opentype'), url("font/fontello.woff?43552937") format('woff'), url("font/fontello.ttf?43552937") format('truetype'), url("font/fontello.svg?43552937#fontello") format('svg');
font-weight: normal;
font-style: normal;
}
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
/*
@media screen and (-webkit-min-device-pixel-ratio:0) {
@font-face {
font-family: 'fontello';
src: url('font/fontello.svg?43552937#fontello') format('svg');
}
}
*/
@font-face {
font-family: 'fontello';
src: url("font/fontello.eot?43552937");
src: url("font/fontello.eot?43552937#iefix") format('embedded-opentype'), url("font/fontello.woff?43552937") format('woff'), url("font/fontello.ttf?43552937") format('truetype'), url("font/fontello.svg?43552937#fontello") format('svg');
font-weight: normal;
font-style: normal;
}
font-family: 'Open Sans', sans-serif;
@import url(http://fonts.googleapis.com/css?family=Open+Sans);
font-family: 'Open Sans', sans-serif;
font-weight: normal;
font-style: normal;
}
Aquí selecciona la fuente que gustes:
Google Fonts
Este es tu CSS:
Código:@font-face { font-family: 'fontello'; src: url("font/fontello.eot?43552937"); src: url("font/fontello.eot?43552937#iefix") format('embedded-opentype'), url("font/fontello.woff?43552937") format('woff'), url("font/fontello.ttf?43552937") format('truetype'), url("font/fontello.svg?43552937#fontello") format('svg'); font-weight: normal; font-style: normal; } /* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */ /* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */ /* @media screen and (-webkit-min-device-pixel-ratio:0) { @font-face { font-family: 'fontello'; src: url('font/fontello.svg?43552937#fontello') format('svg'); } } */
Y este es tu CSS limpio:
Código:@font-face { font-family: 'fontello'; src: url("font/fontello.eot?43552937"); src: url("font/fontello.eot?43552937#iefix") format('embedded-opentype'), url("font/fontello.woff?43552937") format('woff'), url("font/fontello.ttf?43552937") format('truetype'), url("font/fontello.svg?43552937#fontello") format('svg'); font-weight: normal; font-style: normal; }
Entonces, seleccionas una fuente de Google Fonts, yo pondré de ejemplo "Open Sans"
Google Fonts
Ahora, seleccionas donde dice "@import"
![]()
Ese lo añades al principio de tu style.css
Y alli dice:
"4. Integrate the fonts into your CSS"
Ese es lo que vas a colocar para que se muestre el tipo de fuente:
Código:font-family: 'Open Sans', sans-serif;
Tendrias algo mas o menos así como resultado final:
Código:@import url(http://fonts.googleapis.com/css?family=Open+Sans); font-family: 'Open Sans', sans-serif; font-weight: normal; font-style: normal; }
Espero que sirva, y que todo este correcto, que me acabo de despertar![]()
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="mifuenteuno.css" />
<link rel="stylesheet" href="mifuentedos.css" />
No cuesta nada dar soporte a IE8, una vez que cargas el eot para dar soporte a IE9 añadiendo ?#iefix al archivo eot ya das soporte IE9 y versiones inferiores hasta IE6 (incluido IE8 claro).
Lo suyo sería cargar nada más que el woff, pero hay navegadores que ponen trabas y no los usan.