<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: fontAvailable: Test to see if a font is usable</title>
	<atom:link href="http://ajaxian.com/archives/fontavailable-test-to-see-if-a-font-is-usable/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/fontavailable-test-to-see-if-a-font-is-usable</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 09 Feb 2012 06:55:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: tlrobinson</title>
		<link>http://ajaxian.com/archives/fontavailable-test-to-see-if-a-font-is-usable/comment-page-1#comment-271928</link>
		<dc:creator>tlrobinson</dc:creator>
		<pubDate>Wed, 11 Mar 2009 06:49:29 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6230#comment-271928</guid>
		<description>To handle the case where you&#039;re checking the font it&#039;s checked against, you can just check against two different fonts.

Here&#039;s the implementation in Cappuccino: http://gist.github.com/280north/cappuccino/blob/89516d4a3817f0c098afa220486e36211ceab24d/AppKit/CPFontManager.j</description>
		<content:encoded><![CDATA[<p>To handle the case where you&#8217;re checking the font it&#8217;s checked against, you can just check against two different fonts.</p>
<p>Here&#8217;s the implementation in Cappuccino: <a href="http://gist.github.com/280north/cappuccino/blob/89516d4a3817f0c098afa220486e36211ceab24d/AppKit/CPFontManager.j" rel="nofollow">http://gist.github.com/280north/cappuccino/blob/89516d4a3817f0c098afa220486e36211ceab24d/AppKit/CPFontManager.j</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lalitpatel</title>
		<link>http://ajaxian.com/archives/fontavailable-test-to-see-if-a-font-is-usable/comment-page-1#comment-271926</link>
		<dc:creator>lalitpatel</dc:creator>
		<pubDate>Wed, 11 Mar 2009 06:13:18 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6230#comment-271926</guid>
		<description>Similar: http://ajaxian.com/archives/javascriptcss-font-detector</description>
		<content:encoded><![CDATA[<p>Similar: <a href="http://ajaxian.com/archives/javascriptcss-font-detector" rel="nofollow">http://ajaxian.com/archives/javascriptcss-font-detector</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JimmyP22</title>
		<link>http://ajaxian.com/archives/fontavailable-test-to-see-if-a-font-is-usable/comment-page-1#comment-271916</link>
		<dc:creator>JimmyP22</dc:creator>
		<pubDate>Tue, 10 Mar 2009 17:10:52 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6230#comment-271916</guid>
		<description>You should probably do some cleaning up in the plugin. Multiple checks will mean a tonne of useless spans within the DOM.</description>
		<content:encoded><![CDATA[<p>You should probably do some cleaning up in the plugin. Multiple checks will mean a tonne of useless spans within the DOM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ajaxery</title>
		<link>http://ajaxian.com/archives/fontavailable-test-to-see-if-a-font-is-usable/comment-page-1#comment-271913</link>
		<dc:creator>ajaxery</dc:creator>
		<pubDate>Tue, 10 Mar 2009 15:52:47 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6230#comment-271913</guid>
		<description>Should probably set the font-size as well. Don&#039;t ya think?</description>
		<content:encoded><![CDATA[<p>Should probably set the font-size as well. Don&#8217;t ya think?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jordan1</title>
		<link>http://ajaxian.com/archives/fontavailable-test-to-see-if-a-font-is-usable/comment-page-1#comment-271912</link>
		<dc:creator>Jordan1</dc:creator>
		<pubDate>Tue, 10 Mar 2009 15:50:45 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6230#comment-271912</guid>
		<description>I can&#039;t believe this is hosted on Google Code. It seems more suited as a blog entry.</description>
		<content:encoded><![CDATA[<p>I can&#8217;t believe this is hosted on Google Code. It seems more suited as a blog entry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: howardrauscher</title>
		<link>http://ajaxian.com/archives/fontavailable-test-to-see-if-a-font-is-usable/comment-page-1#comment-271911</link>
		<dc:creator>howardrauscher</dc:creator>
		<pubDate>Tue, 10 Mar 2009 15:38:17 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6230#comment-271911</guid>
		<description>@ChrisCasciano
~85% of of home page views had tahoma.  Even thought this number was a rough approximation and has to be taken with a grain of salt, I was hoping the number to be a lot lower so I would have a good reason to push for a wider used font like Arial.

I have been experimenting with a couple of different methods to make it more accurate.  Testing against a matrix of generic families is a good idea.</description>
		<content:encoded><![CDATA[<p>@ChrisCasciano<br />
~85% of of home page views had tahoma.  Even thought this number was a rough approximation and has to be taken with a grain of salt, I was hoping the number to be a lot lower so I would have a good reason to push for a wider used font like Arial.</p>
<p>I have been experimenting with a couple of different methods to make it more accurate.  Testing against a matrix of generic families is a good idea.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ChrisCasciano</title>
		<link>http://ajaxian.com/archives/fontavailable-test-to-see-if-a-font-is-usable/comment-page-1#comment-271909</link>
		<dc:creator>ChrisCasciano</dc:creator>
		<pubDate>Tue, 10 Mar 2009 15:11:16 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6230#comment-271909</guid>
		<description>Sooooooo, spill the beans Howard - How many of your users had Tahoma installed?

As for those worried about a few edge cases - this test could probably be beefed up by testing against a few different faces rather then just a fake font -- for example test against &quot;fake font&quot; but also the monospace, serif and sans-serif generic families so you have a number of matrix to work off of. Even the most controlled environments [either by user preferences or by device type] will probably have different fonts set up for the different generics.</description>
		<content:encoded><![CDATA[<p>Sooooooo, spill the beans Howard &#8211; How many of your users had Tahoma installed?</p>
<p>As for those worried about a few edge cases &#8211; this test could probably be beefed up by testing against a few different faces rather then just a fake font &#8212; for example test against &#8220;fake font&#8221; but also the monospace, serif and sans-serif generic families so you have a number of matrix to work off of. Even the most controlled environments [either by user preferences or by device type] will probably have different fonts set up for the different generics.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karf</title>
		<link>http://ajaxian.com/archives/fontavailable-test-to-see-if-a-font-is-usable/comment-page-1#comment-271908</link>
		<dc:creator>karf</dc:creator>
		<pubDate>Tue, 10 Mar 2009 15:07:31 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6230#comment-271908</guid>
		<description>I think it would be better to set the font family to &quot;monospace&quot; and then to &quot;__FAKEFONT__, monospace&quot;. Then comapre the widths. This will of course not work for monospaced fonts, but use of monospaced font is a very rare case.</description>
		<content:encoded><![CDATA[<p>I think it would be better to set the font family to &#8220;monospace&#8221; and then to &#8220;__FAKEFONT__, monospace&#8221;. Then comapre the widths. This will of course not work for monospaced fonts, but use of monospaced font is a very rare case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: howardrauscher</title>
		<link>http://ajaxian.com/archives/fontavailable-test-to-see-if-a-font-is-usable/comment-page-1#comment-271907</link>
		<dc:creator>howardrauscher</dc:creator>
		<pubDate>Tue, 10 Mar 2009 15:04:33 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6230#comment-271907</guid>
		<description>Yeah, testing for the default font is definitely a case where it breaks.  I a couple of different revisions where I try to handle that case, and they all pretty much fail.  The reason I submitted it to Ajaxian is so I could get ideas and some feedback.

@WebReflection
I never thought about checking for the height of the test element.  Thanks</description>
		<content:encoded><![CDATA[<p>Yeah, testing for the default font is definitely a case where it breaks.  I a couple of different revisions where I try to handle that case, and they all pretty much fail.  The reason I submitted it to Ajaxian is so I could get ideas and some feedback.</p>
<p>@WebReflection<br />
I never thought about checking for the height of the test element.  Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JimmyP22</title>
		<link>http://ajaxian.com/archives/fontavailable-test-to-see-if-a-font-is-usable/comment-page-1#comment-271906</link>
		<dc:creator>JimmyP22</dc:creator>
		<pubDate>Tue, 10 Mar 2009 14:43:44 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6230#comment-271906</guid>
		<description>This will fail when the default font is the same as the one you&#039;re querying.</description>
		<content:encoded><![CDATA[<p>This will fail when the default font is the same as the one you&#8217;re querying.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WebReflection</title>
		<link>http://ajaxian.com/archives/fontavailable-test-to-see-if-a-font-is-usable/comment-page-1#comment-271905</link>
		<dc:creator>WebReflection</dc:creator>
		<pubDate>Tue, 10 Mar 2009 14:40:38 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6230#comment-271905</guid>
		<description>yep, that&#039;s what I meant when I talked about times new roman but generally speaking, if charater width is the same of the default font, even if the height is different this function will return false.
Finally, as I already said, that element should be removed before the return ;-)</description>
		<content:encoded><![CDATA[<p>yep, that&#8217;s what I meant when I talked about times new roman but generally speaking, if charater width is the same of the default font, even if the height is different this function will return false.<br />
Finally, as I already said, that element should be removed before the return ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WebReflection</title>
		<link>http://ajaxian.com/archives/fontavailable-test-to-see-if-a-font-is-usable/comment-page-1#comment-271903</link>
		<dc:creator>WebReflection</dc:creator>
		<pubDate>Tue, 10 Mar 2009 14:13:27 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6230#comment-271903</guid>
		<description>un-removed element a part, is this method that reliable? As example, times new roman returns false on windows ... and I wonder how many fonts with the same character size could return false as well.</description>
		<content:encoded><![CDATA[<p>un-removed element a part, is this method that reliable? As example, times new roman returns false on windows &#8230; and I wonder how many fonts with the same character size could return false as well.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

