Home > CSS > Include new style fonts in Client Server/ Projects

Include new style fonts in Client Server/ Projects

http://www.fontsquirrel.com/fontface/generator

If we want to include any new style folnt in Server we can run the file and get the script and include in our CSS file in two ways,

First Way

@font-face {
font-family: ‘GothamBlackRegular’;
src: url(‘font/gotham-black-webfont.eot’);
src: url(‘font/gotham-black-webfont.eot?#iefix’)
format(’embedded-opentype’), url(‘font/gotham-black-webfont.woff’)
format(‘woff’), url(‘font/gotham-black-webfont.ttf’)
format(‘truetype’),
url(‘font/gotham-black-webfont.svg#GothamBlackRegular’)
format(‘svg’);
font-weight: normal;
font-style: normal;
}

Second Way

1. Copy the “Calibri” font from System font folder and place in our Project CSS folder.

2. Include in the CSS file as below, (This is for Iphones& Tablet. This option will not work in IE. So we need to prefer the First Way)

@font-face {
font-family: ‘Calibri’;
src: url(‘fonts/calibri.ttf’);
font-weight: normal;
font-style: normal;
}

Advertisements
Categories: CSS
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: