Home / SEO / How To Use Custom Fonts With CSS3

How To Use Custom Fonts With CSS3

It is not only color and images that impact on a user’s impression of your website; website fonts also enhance the aesthetics of your web pages. For example, the design of a website offering photos on canvas to online audiences must pay particular attention to crisp look and clean print. High quality fonts must be used in content to convey relevant information to consumers who are interested in photos on canvas as wall display.

CSS3 is very appealing to web designers because of custom fonts. With the font-face rule, a web designer can literally render any font online within the web page text regardless of whether it is installed or not. Using the CSS3 technique, the basic code can be pretty simple although in reality it is somehow more complicated.

When you include custom fonts in the web pages it is important to determine whether it is licensed for web use. There are lots of free fonts online but most premium fonts have license that covers web usage. When the chosen font is uploaded on the server, it must be stored in a dedicated font directory. Do not forget to include files for any of the variants of the font you wish to use whether bold or italic.

In order to add font-face section to the CSS code, it is important to open the HTML or CSS file on the page that you are currently working on. Font-face declaration must be added to the style code. Give the font a name that you can refer to in the future and provide the location of the EOT file. These are the basic requirements for the necessary code which will be sufficient in many cases.

In order to make the code more reliable, there must be an indicator on the font file type. An optional measure is to get the browser to check for a local copy of the font to ensure that it is not already in use. If the font name has more than one word, use a hyphenated version before storing in the dedicated directory. When the font is applied to certain page elements, you will simply specify the font name that was used.

 

About morrisvmansour

Check Also

Web App Interface Design Tips

Without the restrictions, like platform exclusivity or installation requirements, that plague most software, the SAAS, …