| You are here : : Home > Free Resources > CSS Tutorials > Custom Fonts Tutorial |
Free Web Design Resources
Other Web Design Resources
| Browser Support | » | ![]() |
![]() |
![]() |
![]() |
|---|---|---|---|---|---|
| Language | » | CSS3 & HTML4 | |||
| Difficulty | » | beginner | |||
| Estimated Completion Time | » | 15 minutes. | |||
The downloaded fonts will work on most of the browsers but won't work on IE.
To make the fonts appear on IE we'll have to convert it to a format(eot) that IE understands.
How to Convert
There are many software's available on the internet, most of them paid.
Here's a website where we can convert the TTF font to EOT font for IE for Free!
› Online TTF To EOT converter ‹
Upload the font you want to convert on this website and then download the converted font.
Notice the font extension before converting was TTF after converting changes to EOT.
Keep both these files in the same folder Fonts.
1 2 3 4
@font-face {
font-family:font-name;
src: url(folder-name/font
);
}
folder-name/font);
change.
1 2 3
<div id=change> Apply new font on this text. </div>
change, we'll have to define the new fonts and use them with font-family property.
1 2 3 4 5 6 7 8 9 10 11 12 13 14
@font-face {
font-family:rockfont;
src: url(fonts/rockfont.eot
); /* EOT file for IE */
}
@font-face {
font-family:rockfont;
src: url(fonts/rockfont.ttf
); /* TTF file for CSS3 browsers */
}
#change{
font-family:rockfont;
}
fonts/rockfont.eot);
eot. This is for IE.
fonts/rockfont.ttf);
eot. This is for all the browsers.
change.
Join us on Facebook to keep updated with all the latest tutorials and web design freebies from EntheosWeb!
No portion of these materials may be reproduced in any manner whatsoever, without the express written consent of Entheos. Any unauthorized use, sharing, reproduction or distribution of these materials by any means, electronic, mechanical, or otherwise is strictly prohibited.