Archive

Archive for April, 2012

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