<?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: A cool jQuery plugin : PHP / jQuery Image Replacement</title>
	<atom:link href="http://visionmasterdesigns.com/a-cool-jquery-plugin-php-jquery-image-replacement/feed/" rel="self" type="application/rss+xml" />
	<link>http://visionmasterdesigns.com/a-cool-jquery-plugin-php-jquery-image-replacement/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 05 Sep 2010 14:09:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Dylan</title>
		<link>http://visionmasterdesigns.com/a-cool-jquery-plugin-php-jquery-image-replacement/comment-page-1/#comment-3263</link>
		<dc:creator>Dylan</dc:creator>
		<pubDate>Thu, 29 Oct 2009 14:35:24 +0000</pubDate>
		<guid isPermaLink="false">http://visionmasterdesigns.com/?p=1051#comment-3263</guid>
		<description>I just looked at &lt;a href=&quot;http://www.xanthir.com/pir/&quot; rel=&quot;nofollow&quot;&gt;http://www.xanthir.com/pir/&lt;/a&gt; and also see where the font images are being chopped off without displaying the bottom of letters that go below the baseline.  Looking the PHP code I think you could override that if need be.  Lines 97-104 are pasted below.  The get_dip() method looks at all these characters to try to figure out how tall the bounding box needs to be for the PNG.  &lt;br&gt;&lt;br&gt;abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ&#039; .&lt;br&gt;&#039;1234567890&#039;&lt;br&gt;&#039;!@#$%^&amp;*()&#039;&quot;\/;.,`~[]{}-+_-=&#039;&lt;br&gt;&lt;br&gt;You&#039;ll see that get_dip is returned in $dip which is called by ImageCreatetruecolor where it is subtracted from the $box[5] value.  If you&#039;re motivated to try, you should be able to override the $dip value received by get_dip() by increasing or decreasing $dip based on the desired output per font implementation.&lt;br&gt;&lt;br&gt;?PHP&lt;br&gt;// create image&lt;br&gt;$font_rgba = extract_color($font_color);&lt;br&gt;$dip = get_dip($font_file,$font_size);&lt;br&gt;$box = @ImageTTFBBox($font_size,0,$font_file,$text);&lt;br&gt;$image = @ImageCreatetruecolor(abs($box[2]-$box[0])+1,abs($box[5]-$dip));&lt;br&gt;if(!$image &#124;&#124; !$box) {&lt;br&gt;    fatal_error(&#039;Error: The server could not create this heading image.&#039;);&lt;br&gt;}&lt;br&gt;&lt;br&gt;Dylan</description>
		<content:encoded><![CDATA[<p>I just looked at <a href="http://www.xanthir.com/pir/" rel="nofollow">http://www.xanthir.com/pir/</a> and also see where the font images are being chopped off without displaying the bottom of letters that go below the baseline.  Looking the PHP code I think you could override that if need be.  Lines 97-104 are pasted below.  The get_dip() method looks at all these characters to try to figure out how tall the bounding box needs to be for the PNG.  </p>
<p>abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ&#39; .<br />&#39;1234567890&#39;<br />&#39;!@#$%^&amp;*()&#39;&#8221;\/;.,`~[]{}-+_-=&#39;</p>
<p>You&#39;ll see that get_dip is returned in $dip which is called by ImageCreatetruecolor where it is subtracted from the $box[5] value.  If you&#39;re motivated to try, you should be able to override the $dip value received by get_dip() by increasing or decreasing $dip based on the desired output per font implementation.</p>
<p>?PHP<br />// create image<br />$font_rgba = extract_color($font_color);<br />$dip = get_dip($font_file,$font_size);<br />$box = @ImageTTFBBox($font_size,0,$font_file,$text);<br />$image = @ImageCreatetruecolor(abs($box[2]-$box[0])+1,abs($box[5]-$dip));<br />if(!$image || !$box) {<br />    fatal_error(&#39;Error: The server could not create this heading image.&#39;);<br />}</p>
<p>Dylan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dylan</title>
		<link>http://visionmasterdesigns.com/a-cool-jquery-plugin-php-jquery-image-replacement/comment-page-1/#comment-3254</link>
		<dc:creator>Dylan</dc:creator>
		<pubDate>Wed, 28 Oct 2009 13:38:09 +0000</pubDate>
		<guid isPermaLink="false">http://visionmasterdesigns.com/?p=1051#comment-3254</guid>
		<description>I just looked at http://www.xanthir.com/pir/ and also see where the font images are being chopped off without displaying the bottom of letters that go below the baseline.  Looking the PHP code I think you could override that if need be.  Lines 97-104 are pasted below.  The get_dip() method looks at all these characters to try to figure out how tall the bounding box needs to be for the PNG.  

abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ&#039; .
&#039;1234567890&#039;
&#039;!@#$%^&amp;*()\&#039;&quot;\\/;.,`~[]{}-+_-=&#039;

You&#039;ll see that get_dip is returned in $dip which is called by ImageCreatetruecolor where it is subtracted from the $box[5] value.  If you&#039;re motivated to try, you should be able to override the $dip value received by get_dip() by increasing or decreasing $dip based on the desired output per font implementation.

?PHP
// create image
$font_rgba = extract_color($font_color);
$dip = get_dip($font_file,$font_size);
$box = @ImageTTFBBox($font_size,0,$font_file,$text);
$image = @ImageCreatetruecolor(abs($box[2]-$box[0])+1,abs($box[5]-$dip));
if(!$image &#124;&#124; !$box) {
    fatal_error(&#039;Error: The server could not create this heading image.&#039;);
}

Dylan</description>
		<content:encoded><![CDATA[<p>I just looked at <a href="http://www.xanthir.com/pir/" rel="nofollow">http://www.xanthir.com/pir/</a> and also see where the font images are being chopped off without displaying the bottom of letters that go below the baseline.  Looking the PHP code I think you could override that if need be.  Lines 97-104 are pasted below.  The get_dip() method looks at all these characters to try to figure out how tall the bounding box needs to be for the PNG.  </p>
<p>abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ&#8217; .<br />
&#8217;1234567890&#8242;<br />
&#8216;!@#$%^&amp;*()\&#8217;&#8221;\\/;.,`~[]{}-+_-=&#8217;</p>
<p>You&#8217;ll see that get_dip is returned in $dip which is called by ImageCreatetruecolor where it is subtracted from the $box[5] value.  If you&#8217;re motivated to try, you should be able to override the $dip value received by get_dip() by increasing or decreasing $dip based on the desired output per font implementation.</p>
<p>?PHP<br />
// create image<br />
$font_rgba = extract_color($font_color);<br />
$dip = get_dip($font_file,$font_size);<br />
$box = @ImageTTFBBox($font_size,0,$font_file,$text);<br />
$image = @ImageCreatetruecolor(abs($box[2]-$box[0])+1,abs($box[5]-$dip));<br />
if(!$image || !$box) {<br />
    fatal_error(&#8216;Error: The server could not create this heading image.&#8217;);<br />
}</p>
<p>Dylan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aki</title>
		<link>http://visionmasterdesigns.com/a-cool-jquery-plugin-php-jquery-image-replacement/comment-page-1/#comment-3245</link>
		<dc:creator>Aki</dc:creator>
		<pubDate>Mon, 19 Oct 2009 10:42:27 +0000</pubDate>
		<guid isPermaLink="false">http://visionmasterdesigns.com/?p=1051#comment-3245</guid>
		<description>Cool plugin, but it seems to cut off the images from the bottom. Any way that can be fixed?</description>
		<content:encoded><![CDATA[<p>Cool plugin, but it seems to cut off the images from the bottom. Any way that can be fixed?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
