You can use EOT (Embedded OpenType) files for Internet Explorer and either OTF (OpenType) or TTF (TrueType) for the rest. Remember to include the files for any variants of the font you plan on using, such as bold or italic. You may wish to store it in a dedicated “fonts” directory but this is optional. Next upload your chosen font to your server. Almost all free fonts can be used on a website and many premium fonts are available with a license that covers web usage. In this short tutorial, we will run through the basics of including custom fonts in your pages.įirst, make sure that the font you want to use is licensed for web use. With the font-face rule, you can render any font you have online within your web page text, regardless of whether the user has it installed or not.Īs with most CSS3 techniques, the basic code is pretty simple, but the practical reality is a little more complex. Custom fonts are among the most potentially appealing aspects of CSS3 for designers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |