Lo siguiente sería definir en el archivo css las fuentes:
por ejemplo:
@font-face { font-family: "mifuente"; src: url("fonts/fuente.woff") format('woff'); } @font-face { font-family: "
mifuente
"; src: url("fonts/
fuente
-bold.woff") format('woff'); font-weight: bold; } @font-face { font-family: "
mifuente
"; src: url("fonts/
fuente
-boldoblique.woff") format('woff'); font-weight: bold; font-style: italic; } @font-face { font-family: "
mifuente
"; src: url("fonts/
fuente
-oblique.woff") format('woff'); font-style: italic; }
Por último para aplicar la fuente en código html, en este caso un div:
<div class="micapa"> <b>Esto esta escrito con
.woff</b> <br/> <b><i>this will be written with
fuente
-bold
-boldoblique.woff</i></b> <br/> <i>this will be written with fuente-oblique.woff</i> <br/> this will be written with fuente.woff </div>
fuente
y en el css:
.
micapa
{ font-family:
}
mifuente;
No hay comentarios:
Publicar un comentario