Archive for April, 2012

Include new style fonts in Client Server/ Projects

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’)
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;

Categories: CSS