All very important browser platforms support web fonts but they support in different ways. Recently, font formats are of four different types and all browsers are must be targeted by them.  these fonts are TTF, WOFF, EOT, and SVG. There is a use of Hebrew fonts which is a very popular font type.  Now, we are going to discuss how to use web-fonts. Below is the procedure of their use:

Upload the web fonts:

web font kit must be uploaded to the website. They should be adjusted like the CSS files in or near the same directory.

Web font stylesheet should be included:

CSS @font-face declaration is a special case that is helpful for the different browsers to choose the suitable font it requires without any complications to have occurred. this syntax can be learned maximum by reading the Fontspring blog post about it. its code is given below:

@font-face{

font-family: ‘MyWebFont’;

src: URL(‘WebFont.eot’);

src: URL(‘WebFont.eot?#iefix’) format(’embedded-OpenType’),

URL(‘WebFont.woff’) format(‘woff’),

URL(‘WebFont.ttf’) format(‘TrueType’),

URL(‘WebFont.svg#webfont’) format(‘SVG’);

}

for your ease, we have produced a code for you. All you have to do is it is linked with the stylesheet all that you are to be done in your HTML such as:

<link rel=”stylesheet” href=”stylesheet.css” type=”text/CSS” charset=”utf-8″ />

Change the own stylesheet:

If you want to get the benefits of your new fonts, your stylesheet should use these fonts. Check out the real @font-face declaration given already and search the feature known as “font-family.” The linked name which is available there will be that which is used for font’s reference. in the “font-family” feature, a prefix that web font name to the font stack into the selector which is to be changed by you. Such as:

p { font-family: ‘MyWebFont’, Arial, sans-serif; }

Test:

Check the managed fonts either they have been working properly or not. The test is compulsory to obtain fruitful turnout.

How to use online font service:

Commonly, in online font services fonts are stored and served for you. Hence, there is no need to worry about writing the @font-face code. Simply, there should be inserted only a single or two easy coded lines into your site and hence everything starts to work properly. The sample for this is Adobe Fonts and Cloud typography. Mostly, these services can work on the behalf of subscription-based and Google Fonts are exceptionally notable, this free service is very beneficial particularly for work testing quickly and demos writing. These services are very simple in use. Hence, there is no need to discuss them in detail. To get the concept of Google fonts, let’s discuss shortly. Once more use the copies of web-font-start.html and web-font-start.css which would be your starting point.

  • Check the Google Fonts.
  • filters should be used which are placed on the left-hand side to show the types of fonts that are selected by you and select many fonts according to your wish.
  • press the ⊕ button for the selection of font-family which is placed alongside it.
  • When font families have been selected, press the [Number] Families Selectedbar which is below the page.
  • You should copy the result obtained and must be pasted on the head of the HTML file.
  • CSS declarations which are in the form of the list also must be copied into your CSS as suitable.

Alan SEO Company

Leave a Reply

Your email address will not be published. Required fields are marked *