How do I add custom fonts?

Val Do

How do I install a custom font on an html site?

For example, I was working on a wedding website, and I was finding a lot of nice fonts for that subject, but I can't find the right way to add that font to the server, or to include that font with CSS?

Mitul Shah

download your font and put in any directory. here i added in fonts directory

   <style>
    @font-face {
        font-family: 'maven_pro_light_300regular';
        src: url('fonts/mavenprolight-300-webfont.eot');
        src: url('fonts/mavenprolight-300-webfont.eot?#iefix') format('embedded-opentype'),
             url('fonts/mavenprolight-300-webfont.ttf') format('truetype'),
             url('fonts/mavenprolight-300-webfont.woff') format('woff'),
             url('fonts/mavenprolight-300-webfont.svg#maven_pro_light_300regular') format('svg');
        font-weight: normal;
        font-style: normal;
    }

    </style>

and you can use it by follow example:

<style>
h2{
    font-family:maven_pro_light_300regular; 
}
</style>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I add custom fonts?

From Dev

How do you add custom fonts in TCPDF?

From Dev

How do I program an LCD to only use custom fonts?

From Dev

How do I add AAT contextual ligatures to TTF fonts?

From Dev

How do I install fonts?

From Dev

How do I add a custom color to this script?

From Dev

How do I add a custom plugin to Nagios?

From Dev

How do I add a class to a custom namespace?

From Dev

How do I add a custom launcher?

From Dev

How can i add fonts in Pyrocms?

From Dev

How do I put custom fonts into HTML5 Canvas easily?

From Dev

Where do I place custom fonts in Laravel 5?

From Dev

How to add custom fonts in settings.bundle in ios

From Dev

Add custom fonts with folder reference

From Dev

How do I add a custom xtype to another view?

From Dev

How do i add custom plugin and use it in phonegap build?

From Dev

How do I add user defined custom fields to a model?

From Dev

How do I add a custom field to a model in Laravel?

From Dev

How do I add a custom context menu for 'git gui' in Nautilus?

From Java

How do I add custom field to Python log format string?

From Dev

How do I add a custom validator in my FormRequest?

From Dev

How do I add a custom .aspx page to sitecore?

From Dev

How do I add a custom Button inside a cell in handsontable?

From Dev

How do I add toolbar buttons to a custom tinymce dropdown menu?

From Dev

git: How do I add a custom merge strategy?

From Dev

How do I add a custom filter in log4cplus?

From Dev

How Do I Add Custom Properties To CodeDOM Output

From Dev

How do I add a custom method to a restangular service?

From Dev

How do i add an inputAccessoryView to a Custom Keyboard (ios Extension)

Related Related

HotTag

Archive