<?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: JavaScript/CSS Font Detector</title>
	<atom:link href="http://www.lalit.org/lab/javascript-css-font-detect/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lalit.org/lab/javascript-css-font-detect/</link>
	<description>greater than 0, less than 1</description>
	<lastBuildDate>Wed, 02 May 2012 13:30:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Lalit</title>
		<link>http://www.lalit.org/lab/javascript-css-font-detect/#comment-23229</link>
		<dc:creator>Lalit</dc:creator>
		<pubDate>Sat, 24 Mar 2012 08:44:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.orissabiz.com/?p=10#comment-23229</guid>
		<description>I have updated the script adding `serif` instead of `sans`.
Thanks for reporting!</description>
		<content:encoded><![CDATA[<p>I have updated the script adding `serif` instead of `sans`.<br />
Thanks for reporting!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Hein</title>
		<link>http://www.lalit.org/lab/javascript-css-font-detect/#comment-21494</link>
		<dc:creator>Dave Hein</dc:creator>
		<pubDate>Sat, 17 Mar 2012 19:33:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.orissabiz.com/?p=10#comment-21494</guid>
		<description>You have the three default fonts as monospace, sans-serif, and sans. As in:

var baseFonts = [&#039;monospace&#039;,&#039;sans-serif&#039;,&#039;sans&#039;];

But I think you should change the last one to &quot;serif&quot; instead of &quot;sans&quot;. Like this:

var baseFonts = [&#039;monospace&#039;,&#039;sans-serif&#039;,&lt;b&gt;&#039;serif&#039;&lt;/b&gt;];</description>
		<content:encoded><![CDATA[<p>You have the three default fonts as monospace, sans-serif, and sans. As in:</p>
<p>var baseFonts = ['monospace','sans-serif','sans'];</p>
<p>But I think you should change the last one to &#8220;serif&#8221; instead of &#8220;sans&#8221;. Like this:</p>
<p>var baseFonts = ['monospace','sans-serif',<b>'serif'</b>];</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axel Napolitano</title>
		<link>http://www.lalit.org/lab/javascript-css-font-detect/#comment-18055</link>
		<dc:creator>Axel Napolitano</dc:creator>
		<pubDate>Mon, 05 Mar 2012 08:38:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.orissabiz.com/?p=10#comment-18055</guid>
		<description>Hi Lalit,

sounds interesting. I am curious to see and test the updated version as soons as it is available.

Best regards,

Axel</description>
		<content:encoded><![CDATA[<p>Hi Lalit,</p>
<p>sounds interesting. I am curious to see and test the updated version as soons as it is available.</p>
<p>Best regards,</p>
<p>Axel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shahid Faraz</title>
		<link>http://www.lalit.org/lab/javascript-css-font-detect/#comment-18043</link>
		<dc:creator>Shahid Faraz</dc:creator>
		<pubDate>Mon, 05 Mar 2012 03:44:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.orissabiz.com/?p=10#comment-18043</guid>
		<description>Worked great. :D
Thank you very much. :)</description>
		<content:encoded><![CDATA[<p>Worked great. <img src='http://www.lalit.org/wordpress/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
Thank you very much. <img src='http://www.lalit.org/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lalit</title>
		<link>http://www.lalit.org/lab/javascript-css-font-detect/#comment-18022</link>
		<dc:creator>Lalit</dc:creator>
		<pubDate>Sun, 04 Mar 2012 16:34:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.orissabiz.com/?p=10#comment-18022</guid>
		<description>Alex,

I have uploaded a new version of my script. This should be almost 100% fool proof solution. Let me know your thoughts.</description>
		<content:encoded><![CDATA[<p>Alex,</p>
<p>I have uploaded a new version of my script. This should be almost 100% fool proof solution. Let me know your thoughts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lalit</title>
		<link>http://www.lalit.org/lab/javascript-css-font-detect/#comment-16533</link>
		<dc:creator>Lalit</dc:creator>
		<pubDate>Fri, 10 Feb 2012 03:32:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.orissabiz.com/?p=10#comment-16533</guid>
		<description>Alex,
Thanks for the feedback.
I am also working on a solution which will be 100% sure in matching the font names. I will post it soon on my blog.</description>
		<content:encoded><![CDATA[<p>Alex,<br />
Thanks for the feedback.<br />
I am also working on a solution which will be 100% sure in matching the font names. I will post it soon on my blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axel Napolitano</title>
		<link>http://www.lalit.org/lab/javascript-css-font-detect/#comment-16398</link>
		<dc:creator>Axel Napolitano</dc:creator>
		<pubDate>Wed, 08 Feb 2012 12:45:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.orissabiz.com/?p=10#comment-16398</guid>
		<description>The idea doing it this way is nice, but not really reliable enough if you need a near 100% solution. Different rendering of browsers and of course different font smoothing and subpixeling methods will add an - from javascript perspective - blackbox.

Sure, if you render the font large, these &quot;jitter&quot; will be smaller in relation to the font itself but it is not zero. Also important to know is, that there might exist customized corporate fonts which mostly have identical metrics to the source font but may be different in certain details. It is impossible to surely detect those fonts by simply measuring a string containing only 3 different faces of it.

Sure, in most cases this doesn&#039;t happen and asking the question why would someone choose to use those fonts on a webpage may be understandable. But it might happen for some reason - e.g. in a near-wysiwyg-scenario for customizing print products without plugin technology or if some intranet stuff uses fonts to implement the corporate design without relying on cufon or sifr for some reason.

You can reduce the gap and increase accuracy for firefox or opera etc for example, if you query the computed style for these browsers. If you set a particular font and it does not exist, normal behaviour means to use a default font. Unfortunately getting the computed style in IE won&#039;t be possible yet as far as i know (you might try to play with element.currentStyle in IE - i didn&#039;t do this until now).

Anyhow your solution delivers surprisingly exact results with a view on it&#039;s simplicity and therefore it might for most cases a good and specially easy to implement and small footprint compromise to perform font detection.</description>
		<content:encoded><![CDATA[<p>The idea doing it this way is nice, but not really reliable enough if you need a near 100% solution. Different rendering of browsers and of course different font smoothing and subpixeling methods will add an &#8211; from javascript perspective &#8211; blackbox.</p>
<p>Sure, if you render the font large, these &#8220;jitter&#8221; will be smaller in relation to the font itself but it is not zero. Also important to know is, that there might exist customized corporate fonts which mostly have identical metrics to the source font but may be different in certain details. It is impossible to surely detect those fonts by simply measuring a string containing only 3 different faces of it.</p>
<p>Sure, in most cases this doesn&#8217;t happen and asking the question why would someone choose to use those fonts on a webpage may be understandable. But it might happen for some reason &#8211; e.g. in a near-wysiwyg-scenario for customizing print products without plugin technology or if some intranet stuff uses fonts to implement the corporate design without relying on cufon or sifr for some reason.</p>
<p>You can reduce the gap and increase accuracy for firefox or opera etc for example, if you query the computed style for these browsers. If you set a particular font and it does not exist, normal behaviour means to use a default font. Unfortunately getting the computed style in IE won&#8217;t be possible yet as far as i know (you might try to play with element.currentStyle in IE &#8211; i didn&#8217;t do this until now).</p>
<p>Anyhow your solution delivers surprisingly exact results with a view on it&#8217;s simplicity and therefore it might for most cases a good and specially easy to implement and small footprint compromise to perform font detection.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: moto kurye,istanbul kurye,acil kurye</title>
		<link>http://www.lalit.org/lab/javascript-css-font-detect/#comment-7660</link>
		<dc:creator>moto kurye,istanbul kurye,acil kurye</dc:creator>
		<pubDate>Thu, 13 Oct 2011 15:58:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.orissabiz.com/?p=10#comment-7660</guid>
		<description>I delight in, lead to I found just what I was having a look for. You have ended my four day lengthy hunt! God Bless you man. Have a great day. Bye</description>
		<content:encoded><![CDATA[<p>I delight in, lead to I found just what I was having a look for. You have ended my four day lengthy hunt! God Bless you man. Have a great day. Bye</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rupi</title>
		<link>http://www.lalit.org/lab/javascript-css-font-detect/#comment-68</link>
		<dc:creator>Rupi</dc:creator>
		<pubDate>Sun, 08 May 2011 19:59:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.orissabiz.com/?p=10#comment-68</guid>
		<description>Thanks, great script !!!
It might be usefull some time</description>
		<content:encoded><![CDATA[<p>Thanks, great script !!!<br />
It might be usefull some time</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bronius</title>
		<link>http://www.lalit.org/lab/javascript-css-font-detect/#comment-52</link>
		<dc:creator>Bronius</dc:creator>
		<pubDate>Fri, 01 Oct 2010 15:49:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.orissabiz.com/?p=10#comment-52</guid>
		<description>[edit] Oh snap!  I was testing incorrectly.  YES, this font detector detects even when a font is downloaded to the client browser using the @font-face css rule and effectively provides a work-around for Internet Explorer users whose security settings disable font downloads.  THANK YOU :D</description>
		<content:encoded><![CDATA[<p>[edit] Oh snap!  I was testing incorrectly.  YES, this font detector detects even when a font is downloaded to the client browser using the @font-face css rule and effectively provides a work-around for Internet Explorer users whose security settings disable font downloads.  THANK YOU <img src='http://www.lalit.org/wordpress/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

