<?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>HABIB &#187; CSS</title>
	<atom:link href="http://muhammadhabib.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://muhammadhabib.com</link>
	<description></description>
	<lastBuildDate>Mon, 08 Mar 2010 21:29:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Finally, Using your font on the web!</title>
		<link>http://muhammadhabib.com/2009/04/embedding-your-font-on-the-web/</link>
		<comments>http://muhammadhabib.com/2009/04/embedding-your-font-on-the-web/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 19:45:45 +0000</pubDate>
		<dc:creator>Muhammad</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://muhammadhabib.com/?p=24</guid>
		<description><![CDATA[The CSS @font-face rule allows you to specify &#38; upload a font that will be downloaded to the clients machine, so the web page will be rendered exactly as you expected it to be, no matter where! In a huge &#8230; <a href="http://muhammadhabib.com/2009/04/embedding-your-font-on-the-web/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3>The <abbr title="Cascading Style Sheets">CSS</abbr> @font-face rule allows you to specify &amp; upload a font that will be downloaded to the clients machine, so the web page will be rendered exactly as you expected it to be, no matter where!</h3>
<p>In a huge step forward for typography on the web, Mozilla finally announced that their new Firefox 3.5 (<a href="http://www.mozilla.com/firefox/all-beta.html" target="_self">download beta</a>) will support the @font-face rule. Opera is supposed to do the same with the <a href="http://www.opera.com/browser/next/">next 10 version</a>. It&#8217;s worth to know that this feature is working already on Safari 3.1 + using webkit. the ugly IE 4.0 + Supports this too, but with <em>.eot</em> or <em>.ote</em> font file extensions only.</p>
<h4>History</h4>
<p>Since May 1998 in the CSS 2 specification, every one was interested in being able to  embed your own fonts on any web page using @font-face rule. It would help you make sure that your visitors will see your design just as you created it. however this was not implemented on every browser, so it was later removed from the recommendation is CSS 2.1.</p>
<h4>Disadvantages</h4>
<p>The copyright issues! using this method means that any one can go through your code and download the font you are using. This arises a problem since there are many fonts you are not allowed to re-distribute. There should be a way of encoding font files or otherwise we will have to stick with open source fonts, which can&#8217;t be the answer!</p>
<h4>alternatives?</h4>
<p>On the other way, the use of <a href="http://www.mikeindustries.com/sifr"><abbr title="Scalable Inman Flash Replacement">sIFR</abbr></a> (inline Flash &amp; Javascript text replacement) was the only other reliable way I know around this, It allows you to embed your font on any browser that supports Flash and Javascript. Beside the fact that it prevent stealing, It is easy, reliable, and it validates.</p>
<h3>Using @font-face property</h3>
<h4>Syntax:</h4>
<pre>@font-face {
  font-family: your-font-family-name;
  src: url-to-the-font-file;
}</pre>
<h4>Example Usage:</h4>
<pre>@font-face{
font-family:'Myriad Pro';
src: url('http://web-site.com/MyriadPro.otf') format('opentype');
}

h2{
font-family:'Myriad Pro', georgia;
}</pre>
<h4>HTML code:</h4>
<pre>&lt;body&gt;
  &lt;h2&gt;This is Myriad Pro font Example.&lt;/h2&gt;
&lt;/body&gt;</pre>
<ul>
<li><a href="http://www.w3.org/TR/css3-webfonts/#font-descriptions">Read more about @font-face property</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://muhammadhabib.com/2009/04/embedding-your-font-on-the-web/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
