<?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>Mats Lindh &#187; jquery</title>
	<atom:link href="http://e-mats.org/category/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://e-mats.org</link>
	<description>Where desperate is just another word for a regular day.</description>
	<lastBuildDate>Fri, 23 Jul 2010 14:23:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>An Update to jQDynamicFontSize</title>
		<link>http://e-mats.org/2009/04/an-update-to-jqdynamicfontsize/</link>
		<comments>http://e-mats.org/2009/04/an-update-to-jqdynamicfontsize/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 10:05:13 +0000</pubDate>
		<dc:creator>Mats</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[font size]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://e-mats.org/?p=471</guid>
		<description><![CDATA[When we released jQDynamicFontSize a couple of weeks ago, we hoped that others would find the plugin useful and keep it around as one of the many tools in your toolbox. We also had a small hope that people would find it useful to extend and maybe submit a patch or two back to us. [...]]]></description>
			<content:encoded><![CDATA[<p>When we released <a href="http://code.google.com/p/jqdynamicfontsize/" title="jQDynamicFontSize - A small jQuery plugin for dynamically adjusting headlines and text to fit">jQDynamicFontSize</a> a couple of weeks ago, we hoped that others would find the plugin useful and keep it around as one of the many tools in your toolbox. We also had a small hope that people would find it useful to extend and maybe submit a patch or two back to us.</p>
<p>And lo&#8217; and behold, during the weekend the first patch arrived in my mailbox. Written by <a href="http://vega.rd.no/">Vegard Andreas Larsen</a>, we now also support scaling against the width of a container. I didn&#8217;t even have an idea around this, and suddenly we have working code. The power of open source!</p>
<p>This adds two new options when initializing jqDFS:</p>
<ul>
<li>limitWidth: Uses the width of the element to determine the size instead of the height. Defaults to false.</li>
<li>allowUpscaling: Allows the element to grow instead of shrink to fit the provided area. Only works when limitWidth is active currently. Defaults to false. </li>
</ul>
<p>The original scale method should probably be rewritten to also use allowUpscaling, so if anyone feels slightly hackish tonight, just send the patch my way!</p>
]]></content:encoded>
			<wfw:commentRss>http://e-mats.org/2009/04/an-update-to-jqdynamicfontsize/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing jQDynamicFontSize &#8211; A jQuery Plugin for Dynamic Font Size</title>
		<link>http://e-mats.org/2009/03/introducing-jqdynamicfontsize-a-jquery-plugin-for-dynamic-font-size/</link>
		<comments>http://e-mats.org/2009/03/introducing-jqdynamicfontsize-a-jquery-plugin-for-dynamic-font-size/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 22:32:43 +0000</pubDate>
		<dc:creator>Mats</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[font size]]></category>
		<category><![CDATA[headlines]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[Typography]]></category>

		<guid isPermaLink="false">http://e-mats.org/?p=466</guid>
		<description><![CDATA[We&#8217;ve released the first version of jQDynamicFontSize &#8211; a jQuery Plugin for dynamically adjusting the font size of an element to fit a number of lines. The plugin was written to allow us to resize a headline to make the headline fit on one line, sacrificing text size to avoid breaking text into two lines. [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve released the first version of <a href="http://code.google.com/p/jqdynamicfontsize/">jQDynamicFontSize</a> &#8211; a jQuery Plugin for dynamically adjusting the font size of an element to fit a number of lines. The plugin was written to allow us to resize a headline to make the headline fit on one line, sacrificing text size to avoid breaking text into two lines.</p>
<p>To paraphrase from the INSTALL file:</p>
<pre>
In a production system, use jquery-dynamicfontsize.min.js. For debugging
or developing, use jquery-dynamicfontsize.js.

Usage:

Include a reference to the script after loading jQuery:

&lt;script src="jquery-dynamicfontsize.min.js"&gt;&lt;/script&gt;

Then call:

$("#idOfElement").dynamicFontSize();

This will attempt to scale the font size of the element down with 10% in
3 iterations, stopping when a value has been found that allows the element
to only use one text line.

$("h1").dynamicFontSize();

This will attempt to scale all h1 elements. Other jQuery selectors will also
work.

Options supported:

    * squeezeFactor: A float value that will be used as the squeeze factor
      for each step. 0.1 means that we'll attempt to scale the font-size down
      10% for each iteration. Defaults to 0.1.
    * lines: The number of lines we'll attempt to fit the text to. When the
      text fits this (or a smaller) amount of lines, we'll stop scaling.
      Defaults to 1.
    * tries: The number of iterations we'll try before we give up and go with
      the last result. Defaults to 3.
</pre>
<p>We do currently not care for the line-height of elements, so if you&#8217;re feeling slightly hackish tonight, feel free to add the required piece of javascript goodness. Any suitable patches are welcome!</p>
]]></content:encoded>
			<wfw:commentRss>http://e-mats.org/2009/03/introducing-jqdynamicfontsize-a-jquery-plugin-for-dynamic-font-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
