<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Expressing IT &#187; Webfonts</title>
	<atom:link href="http://developer.expressionz.in/blogs/tag/webfonts/feed/" rel="self" type="application/rss+xml" />
	<link>http://developer.expressionz.in/blogs</link>
	<description>User Interface : just another, but a serious developers weblog</description>
	<lastBuildDate>Thu, 20 May 2010 18:05:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>@fontface : Expressing it with a font of your choice; Using WebFonts</title>
		<link>http://developer.expressionz.in/blogs/2010/03/13/fontface-expressing-it-with-a-font-of-your-choice-using-webfonts/</link>
		<comments>http://developer.expressionz.in/blogs/2010/03/13/fontface-expressing-it-with-a-font-of-your-choice-using-webfonts/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 09:31:59 +0000</pubDate>
		<dc:creator>Nikhil</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Webfonts]]></category>

		<guid isPermaLink="false">http://developer.expressionz.in/blogs/?p=210</guid>
		<description><![CDATA[CSS completed 10 years existence this year! Those who have been around for a while , earning their bread (or not) using CSS, then you might aware how we have been starving for  a good selection of fonts. ]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fdeveloper.expressionz.in%2Fblogs%2F2010%2F03%2F13%2Ffontface-expressing-it-with-a-font-of-your-choice-using-webfonts%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdeveloper.expressionz.in%2Fblogs%2F2010%2F03%2F13%2Ffontface-expressing-it-with-a-font-of-your-choice-using-webfonts%2F&amp;source=nikhild&amp;style=normal&amp;hashtags=Tutorials,Webfonts" height="61" width="50" /><br />
			</a>
		</div>
<p>CSS completed 10 years existence this year! Those who have been around for a while , earning their bread (or not) using CSS, then you might aware how we have been starving for  a good selection of fonts.  Even with the lack of fonts designers like those at  <a href="http://www.csszengarden.com/" target="_blank">CSS Zen Garden</a> have made use of CSS background images to replace fonts  in the pursuit of doing some justice to their designs .  We have also tried Flash/JavaScript® hacks to achieve our design goals.  By no means this is  a wrong way to get the fonts we desire into our web designs, but definitely, it is not the most desirable way.  and over years web designer, like me ,  have fully relied  on ten or so  fonts for their designs.</p>
<p>Recent developments in web standards and font formats make it possible to render HTML text in typefaces other than the same old default fonts.   Comes in  the &#8220;<strong>@fontface</strong>&#8221; CSS decleration.</p>
<p><strong>@fontface</strong> provids a solution to link  to the actual font file and retrieve it from the web.  Using @fontface , designers can use  fonts without having to freeze the text as background images.  The implementation is very straight forward, as shown below but  as all good things have a CON part to it , NOT ALL browsers support a single &#8220;<em>font type</em> &#8220;.  If you are planning to use <strong>@fontface</strong> in site with requiring cross browser support, then you will have to provide sources to various font-types of the same.</p>
<ol>
<li><strong>TrueType</strong> &#8211; A format designed to look good on-screen. Recommended particularly for Windows browsers (Chrome).</li>
<li><strong>OpenType (CFF)</strong> &#8211; This format is better for print work and does not always look good on Windows.</li>
<li><strong>EOT</strong> &#8211; You need this format if you want to target Internet Explorer. IE will not use any other format. Our EOT&#8217;s would be considered &#8220;Lite,&#8221; since they are neither compressed nor domain-restricted.</li>
<li><strong>SVG</strong> &#8211; This is an XML format supported by some browsers including the iPhone.</li>
<li><strong>WOFF</strong> &#8211; This cross-browser, web-only font format is lightweight (font data is zip compressed) and can be compiled with either TrueType or PostScript (CFF) outlines. It is currently supported by FireFox 3.6+.</li>
</ol>
<p><strong>Using @fontface</strong></p>
<pre>@font-face {
font-family: 'CalligraphyFLFRegular';
src: url('CalligraphyFLF.eot');
src: local('CalligraphyFLF'), local('CalligraphyFLF'), url('CalligraphyFLF.woff') format('woff'), url('CalligraphyFLF.ttf')        format('truetype'), url('CalligraphyFLF.svg#CalligraphyFLF') format('svg');
}
@font-face {
  font-family: "Your typeface";
  src: url("fonts/font_filename.eot");
  src: local("Alternate name"), local("Alternatename"),
    url("fonts/font_filename.woff") format("woff"),
    url("fonts/font_filename.otf") format("opentype"),
    url("fonts/font_filename.svg#font_filename") format("svg");
  }
h2 { font-family: "Your typeface", Georgia, serif; }</pre>
<p>As  you can see from the above example, to include the chosen font typeface, one has to  link to a set of fonttypes for the same typeface. Hence people refer to it as <strong>&#8220;Font Kit&#8221;</strong>.<br />
There are  Font Kits available that explicitly allows linking with the CSS @font-face property to it under End User License Agreement (EULA).</p>
<p><strong>Useful WebFont Resources : </strong></p>
<ul>
<li><a href="http://webfonts.info/wiki/index.php?title=Fonts_available_for_%40font-face_embedding" target="_blank">Fonts available for @font-face embedding</a> wiki page at <a href="http://webfonts.info/wiki/index.php?title=Main_Page" target="_blank">http://webfonts.info/wiki/index.php?title=Main_Page<br />
</a></li>
<li><a href="http://www.larabiefonts.com/" target="_blank">Ray Larabie</a> .  He is a renowned font designer who has made hundreds of interesting TrueType fonts freely available for use on the web. His fonts are elegant, decorative, and playful.</li>
<li><a href="http://moorstation.org/typoasis/designers/steffmann/index.htm" target="_blank">Dieter Steffmann</a> is another great font designer. He, too, has made many beautiful fonts available for anyone to use.</li>
<li><a href="http://www.fontshop.com/fonts/" target="_blank">Font shop</a> : offers fonts designed specifically for web use.  More than 30 of the most successful FontFont families are now available as Web FontFonts.   FontShop  also has  a detailed WebFont user guide  <a href="http://www.fontshop.com/blog/newsletters/pdf/webfontfontuserguide.pdf" target="_blank">http://www.fontshop.com/blog/newsletters/pdf/webfontfontuserguide.pdf<br />
</a></li>
<li><a href="http://www.fontsquirrel.com/fontface" target="_blank">Font Squirrel</a> :  Showcases all the fonts that Font Squirrel offers for use with @font-face CSS embedding. Font Squirrel offers an impressive quantity of type, makes it dead simple to pick one out, and handily offers “kits” – the typeface of your choice, in several formats, packaged with demo HTML &amp; CSS that uses very current @font-face syntax. They also offer a way to <a href="http://www.fontsquirrel.com/fontface/generator">make your own @font-face kits</a>.  If the typeface you want to use has been licensed appropriately (the ones that come with your computer are not necessarily okay), the generator produces EOT, SVG, and hey! WOFF files.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://developer.expressionz.in/blogs/2010/03/13/fontface-expressing-it-with-a-font-of-your-choice-using-webfonts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
