<?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: jQuery Image Text Replacement: Work In Progress</title>
	<atom:link href="http://jamiethompson.co.uk/projects/2008/03/17/jquery-image-text-replacement-work-in-progress/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamiethompson.co.uk/projects/2008/03/17/jquery-image-text-replacement-work-in-progress/</link>
	<description>Web Developer</description>
	<lastBuildDate>Fri, 03 Feb 2012 14:06:18 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: zwfx</title>
		<link>http://jamiethompson.co.uk/projects/2008/03/17/jquery-image-text-replacement-work-in-progress/comment-page-1/#comment-135</link>
		<dc:creator>zwfx</dc:creator>
		<pubDate>Thu, 29 Oct 2009 14:40:58 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/projects/2008/03/17/jquery-image-text-replacement-work-in-progress/#comment-135</guid>
		<description>use
------------				$(&quot;.jitr&quot;).each(function() {
					$(this).css(&quot;visibility&quot;, &quot;hidden&quot;);
				})
------------
instead of
------------
  document.write(&#039;&#039;);
------------</description>
		<content:encoded><![CDATA[<p>use<br />
&#8212;&#8212;&#8212;&#8212;				$(&#8220;.jitr&#8221;).each(function() {<br />
					$(this).css(&#8220;visibility&#8221;, &#8220;hidden&#8221;);<br />
				})<br />
&#8212;&#8212;&#8212;&#8212;<br />
instead of<br />
&#8212;&#8212;&#8212;&#8212;<br />
  document.write(&#8221;);<br />
&#8212;&#8212;&#8212;&#8212;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Caroline Clifford</title>
		<link>http://jamiethompson.co.uk/projects/2008/03/17/jquery-image-text-replacement-work-in-progress/comment-page-1/#comment-134</link>
		<dc:creator>Caroline Clifford</dc:creator>
		<pubDate>Mon, 05 Jan 2009 13:43:25 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/projects/2008/03/17/jquery-image-text-replacement-work-in-progress/#comment-134</guid>
		<description>Also.... (to make the fonts actually line up)

ImageTTFText($image,$font_size,0,-$box[0],abs($box[5]-$box[3])-$box[1],

becomes

ImageTTFText($image,$font_size,0,-$box[0],abs($boxMax[5]-$box[3])-$box[1],</description>
		<content:encoded><![CDATA[<p>Also&#8230;. (to make the fonts actually line up)</p>
<p>ImageTTFText($image,$font_size,0,-$box[0],abs($box[5]-$box[3])-$box[1],</p>
<p>becomes</p>
<p>ImageTTFText($image,$font_size,0,-$box[0],abs($boxMax[5]-$box[3])-$box[1],</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Caroline Clifford</title>
		<link>http://jamiethompson.co.uk/projects/2008/03/17/jquery-image-text-replacement-work-in-progress/comment-page-1/#comment-133</link>
		<dc:creator>Caroline Clifford</dc:creator>
		<pubDate>Mon, 05 Jan 2009 13:28:37 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/projects/2008/03/17/jquery-image-text-replacement-work-in-progress/#comment-133</guid>
		<description>Hi there,

Firstly thanks for a great script! I noticed that all the images were different heights depending on what text you had in the heading. I have worked around this by making heading.php read the height from an extended character chr(219) which is a full block &amp; even if that is not available it should put in an n/a character which is also full height.

I used the following code:

$image = @ImageCreate(abs($box[2]-$box[0]),abs($box[5]-$dip)) ;

becomes

$boxMax = @ImageTTFBBox($font_size,0,$font_file,chr(219));
$image = @ImageCreate(abs($box[2]-$box[0]),abs($boxMax[5]-$dip));

I hope this helps! There is probably a better solution but I am a lowly front end developer :D</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>Firstly thanks for a great script! I noticed that all the images were different heights depending on what text you had in the heading. I have worked around this by making heading.php read the height from an extended character chr(219) which is a full block &amp; even if that is not available it should put in an n/a character which is also full height.</p>
<p>I used the following code:</p>
<p>$image = @ImageCreate(abs($box[2]-$box[0]),abs($box[5]-$dip)) ;</p>
<p>becomes</p>
<p>$boxMax = @ImageTTFBBox($font_size,0,$font_file,chr(219));<br />
$image = @ImageCreate(abs($box[2]-$box[0]),abs($boxMax[5]-$dip));</p>
<p>I hope this helps! There is probably a better solution but I am a lowly front end developer <img src='http://jamiethompson.co.uk/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie Thompson</title>
		<link>http://jamiethompson.co.uk/projects/2008/03/17/jquery-image-text-replacement-work-in-progress/comment-page-1/#comment-132</link>
		<dc:creator>Jamie Thompson</dc:creator>
		<pubDate>Thu, 31 Jul 2008 09:57:06 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/projects/2008/03/17/jquery-image-text-replacement-work-in-progress/#comment-132</guid>
		<description>I&#039;m not sure I understand what you&#039;re asking. All you need to do is pass in the file path that PHP needs in order to open the file.

hover states won&#039;t work. This could be implemented pretty easily but you&#039;d straight away be doubling the number of server callbacks needed to generate the images.

If that sort of thing is important to you, you might be better off with &lt;a href=&quot;http://www.mikeindustries.com/blog/sifr/&quot; rel=&quot;nofollow&quot;&gt;sIFR&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure I understand what you&#8217;re asking. All you need to do is pass in the file path that PHP needs in order to open the file.</p>
<p>hover states won&#8217;t work. This could be implemented pretty easily but you&#8217;d straight away be doubling the number of server callbacks needed to generate the images.</p>
<p>If that sort of thing is important to you, you might be better off with <a href="http://www.mikeindustries.com/blog/sifr/" rel="nofollow">sIFR</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Overshee</title>
		<link>http://jamiethompson.co.uk/projects/2008/03/17/jquery-image-text-replacement-work-in-progress/comment-page-1/#comment-131</link>
		<dc:creator>Overshee</dc:creator>
		<pubDate>Wed, 30 Jul 2008 20:08:26 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/projects/2008/03/17/jquery-image-text-replacement-work-in-progress/#comment-131</guid>
		<description>So would http://www.example.com/fonts/whatever.ttf work?

or /fonts/whatever.ttf even if you aren&#039;t running off the root?

Also, if you make them into a link, does a:hover work to change colors or even fonts?</description>
		<content:encoded><![CDATA[<p>So would <a href="http://www.example.com/fonts/whatever.ttf" rel="nofollow">http://www.example.com/fonts/whatever.ttf</a> work?</p>
<p>or /fonts/whatever.ttf even if you aren&#8217;t running off the root?</p>
<p>Also, if you make them into a link, does a:hover work to change colors or even fonts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie Thompson</title>
		<link>http://jamiethompson.co.uk/projects/2008/03/17/jquery-image-text-replacement-work-in-progress/comment-page-1/#comment-130</link>
		<dc:creator>Jamie Thompson</dc:creator>
		<pubDate>Wed, 30 Jul 2008 18:56:10 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/projects/2008/03/17/jquery-image-text-replacement-work-in-progress/#comment-130</guid>
		<description>Sorry you&#039;re having trouble. I never really intended this as a howto, although all the info is here for anyone interested in using the technique. I may &#039;officially&#039; release jitr at some point with ful instructions.

But on the subject of the font. You can place your fonts it anywhere you like. As long as it&#039;s readable by PHP

When you invoke jitr you pass it the path to the font you want it to use relative to the root of your site.</description>
		<content:encoded><![CDATA[<p>Sorry you&#8217;re having trouble. I never really intended this as a howto, although all the info is here for anyone interested in using the technique. I may &#8216;officially&#8217; release jitr at some point with ful instructions.</p>
<p>But on the subject of the font. You can place your fonts it anywhere you like. As long as it&#8217;s readable by PHP</p>
<p>When you invoke jitr you pass it the path to the font you want it to use relative to the root of your site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Overshee</title>
		<link>http://jamiethompson.co.uk/projects/2008/03/17/jquery-image-text-replacement-work-in-progress/comment-page-1/#comment-129</link>
		<dc:creator>Overshee</dc:creator>
		<pubDate>Tue, 29 Jul 2008 03:05:05 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/projects/2008/03/17/jquery-image-text-replacement-work-in-progress/#comment-129</guid>
		<description>I&#039;m having a bit of trouble with this.  Where do you put the font?  Your post doesn&#039;t really seem to say...</description>
		<content:encoded><![CDATA[<p>I&#8217;m having a bit of trouble with this.  Where do you put the font?  Your post doesn&#8217;t really seem to say&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Harris</title>
		<link>http://jamiethompson.co.uk/projects/2008/03/17/jquery-image-text-replacement-work-in-progress/comment-page-1/#comment-128</link>
		<dc:creator>Patrick Harris</dc:creator>
		<pubDate>Fri, 30 May 2008 11:22:48 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/projects/2008/03/17/jquery-image-text-replacement-work-in-progress/#comment-128</guid>
		<description>I&#039;ve written a Drupal plugin for your script, and submitted it at http://drupal.org/node/261799 ... wait to see what happens.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve written a Drupal plugin for your script, and submitted it at <a href="http://drupal.org/node/261799" rel="nofollow">http://drupal.org/node/261799</a> &#8230; wait to see what happens.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://jamiethompson.co.uk/projects/2008/03/17/jquery-image-text-replacement-work-in-progress/comment-page-1/#comment-127</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Wed, 21 May 2008 09:00:20 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/projects/2008/03/17/jquery-image-text-replacement-work-in-progress/#comment-127</guid>
		<description>I hadn&#039;t included the PHP source as I wasn&#039;t intending on anyone attempting to use this technique. Not that i&#039;m not glad you&#039;ve had a play with it.

As you&#039;ve found, additional space characters need to be added and this is handled by the modified PHP script, as well as picking up the font color and size passed in by jitr.

sp, just for you (and anyone else who might be interested) the php source is available here:

http://jamazon.co.uk/files/src/php/jitr.php.txt</description>
		<content:encoded><![CDATA[<p>I hadn&#8217;t included the PHP source as I wasn&#8217;t intending on anyone attempting to use this technique. Not that i&#8217;m not glad you&#8217;ve had a play with it.</p>
<p>As you&#8217;ve found, additional space characters need to be added and this is handled by the modified PHP script, as well as picking up the font color and size passed in by jitr.</p>
<p>sp, just for you (and anyone else who might be interested) the php source is available here:</p>
<p><a href="http://jamazon.co.uk/files/src/php/jitr.php.txt" rel="nofollow">http://jamazon.co.uk/files/src/php/jitr.php.txt</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Harris</title>
		<link>http://jamiethompson.co.uk/projects/2008/03/17/jquery-image-text-replacement-work-in-progress/comment-page-1/#comment-126</link>
		<dc:creator>Patrick Harris</dc:creator>
		<pubDate>Wed, 21 May 2008 08:43:42 +0000</pubDate>
		<guid isPermaLink="false">http://jamazon.co.uk/projects/2008/03/17/jquery-image-text-replacement-work-in-progress/#comment-126</guid>
		<description>Hi - fantastic work. This is extremely useful. How did you extend Stewart Rosenberg&#039;s script?

I had to add a space to the text to get it working properly, but even then, I end up with slightly different text size and kerning to you.

E-mail me your version of Rosenberg&#039;s script if possible. I&#039;ll definitely keep up with your progress on this.</description>
		<content:encoded><![CDATA[<p>Hi &#8211; fantastic work. This is extremely useful. How did you extend Stewart Rosenberg&#8217;s script?</p>
<p>I had to add a space to the text to get it working properly, but even then, I end up with slightly different text size and kerning to you.</p>
<p>E-mail me your version of Rosenberg&#8217;s script if possible. I&#8217;ll definitely keep up with your progress on this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

