HOW TO USE FONT FACE IN HTML SITE
when we work on localhost font work properly but when we upload project and run online font not worked
to solve this problem we have to set font-face property or make font online runable
click on this link
to online generate font face
in this page add font and create font-face kit it will download auto matic
copy all file except stylesheet and html file
and past it in a new folder
rename tha folder into font
copy this code in your stylesheet
@charset "utf-8";
/* CSS Document */
@font-face {
font-family: 'azo_sanslight';
src: url('../fonts/rui_abreu_-_azosans-light-webfont.eot');
src: url('../fonts/rui_abreu_-_azosans-light-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/rui_abreu_-_azosans-light-webfont.woff') format('woff'),
url('../fonts/rui_abreu_-_azosans-light-webfont.ttf') format('truetype'),
url('../fonts/rui_abreu_-_azosans-light-webfont.svg#azo_sanslight') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'azo_sansbold';
src: url('../fonts/rui_abreu_-_azosans-bold-webfont.eot');
src: url('../fonts/rui_abreu_-_azosans-bold-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/rui_abreu_-_azosans-bold-webfont.woff') format('woff'),
url('../fonts/rui_abreu_-_azosans-bold-webfont.ttf') format('truetype'),
url('../fonts/rui_abreu_-_azosans-bold-webfont.svg#azo_sansbold') format('svg');
font-weight: normal;
font-style: normal;
}
now set the font-family property where u want
u have to create different kit for different font-face
.........................................................................................................................................................
Comments
Post a Comment