Skip to content Skip to sidebar Skip to footer

How To Add Some Non-standard Font To Html?

So i wanted to add a custom font to my Html and CSS but i'm struggling to link the Html my font. style type='text/css'> @font-face { font-family: 'Uni Sans'; src

Solution 1:

use Font Squirrel generator. But beware of the font license!

Solution 2:

You cannot link a local font to your html or CSS. You need to convert the font you want to webfont, like Fontsquirrel. Download and unzip the files, place them into the folder of your html page or a new "fonts" folder located in the same folder as your html or CSS file. Then open the stylesheet.css that you get from Fontsquirrel, copy and paste the CSS of the font into your new css file and change the path of the font as you need. Then use the font 'name' in your CSS wherever you need.

Post a Comment for "How To Add Some Non-standard Font To Html?"