I adjusted the Text-to-Image Wordpress Plugin “TTF Titles” by John Leavitt to include css classes and wrote a quick and dirty Wordpress plugin to use TTF Titles within the “Write Post” text area.
John Leavitt over at Hostscope has an excellent WordPress plugin to convert text to images, “TTFTitles”. Originally it was intended to create images of your special font’ed WordPress post titles, but you can also create images from text on-the-fly with the <?php the_ttftext( … ) ?> function:
![]()

The original plugin had a few drawbacks:
I edited the ttftitles.php file to address 1. & 2. and created a quick and dirty plugin for 3.. You have to rename both files’ extensions to “.php” – ttftitles.php goes into the TTF Titles plugin subdirectory, thinkstorm-ttf.php goes into your plugin root directory. (You will have to activate the newly created “Generate Text To Font” Plugin). Now you can do two things:
“¦¦Hello, World¦heroin¦font_size=16&css_classes=right¦¦” produces the image shown on the right. There are a few issues with this quick and dirty hack:
Have fun!
Update from 2009-06-21
ichael had a question in comment number 7 regarding centering text in the TTF plugin instead of having it “left-aligned”. In my experience, the width of the TTF images is exactly the length of the text. If you want text to be centered, you would have to enclose it in a <div> or <p> or <h1> tag etc. and then center the enclosed TTF image via CSS. In case your image also has a background color, your enclosure tag needs to have that background color as well. So if you’re using my plugin, this helped:
<p style="text-align:center">¦¦Super Header¦¦¦¦</p>
which would then be rendered as:
![]()
Also: for compatibility reasons with non-image browsers as well as for Search Engine Optimization (SEO) reasons, you should never render important text (like headings) into images and then not set the ALT tag accordingly. An even better solution is something called “StateScoping” of CSS, shown here:
http://alt.skybound.ca/statescope/
In the upper right corner of the main text content there is a link to switch “scopes”, and you can see the difference between the page rendered with images and without. The example is also somewhat SEO safe, even with images switched on, as the text will still be included in the page and just displaced by CSS.I say “somewhat”, because my latest experience is that Google does interpret the CSS placement for otherwise higher ranking sites to avoid tweaking of sites with SEO code that would never be displayed – such as putting “Nokia, N95, Gizmodo, Samsung, LG, G1, iPhone” within an <div> container that is placed off the screen just so to improve the hit rate on these keywords without actually displaying them :).
You can follow the comments for this article with the RSS 2.0 feed.
An other problem with the search field : when i want to find the title of one of my post, the result is ok but there is no displaying of title, so you can't click on it to read it ! Annoying…
Thanks again
I don't know exactly what you mean: do you want the image to link to the permalink? I would suggest to alter your WordPress theme accordingly instead of using the Text-To-Font build-in automatic captions. I'll shoot you an email about it…
you will have to edit the search.php template of your theme accordingly – I can help you with it if you want to, just send it to me via email as .txt attachment.
I don't know exactly what you mean: do you want the image to link to the permalink? I would suggest to alter your WordPress theme accordingly instead of using the Text-To-Font build-in automatic captions. I'll shoot you an email about it…
you will have to edit the search.php template of your theme accordingly – I can help you with it if you want to, just send it to me via email as .txt attachment.
Oh, my, I should have used WordPress SHORTCODES, as described in: http://www.smashingmagazine.com/2009/02/02/mastering-wordpress-shortcodes/
Вы производите обмен постовыми?
здесь видел ет gamebulletin.ru
great adjustment to the plugin. i do have one question that maybe you can answer. is there a way to have ttftitles render the text inside of the image as center-aligned instead of left?
Hi Michael,
[I have to put spaces between the "< ", ">", and the tags so they don't get interpreted or filtered ;))]
Can you give me an example where your TTF plugin renders text “centered”? In my experience, the width of the TTF images is exactly the length of the text. If you want text to be centered, you would have to enclose it in a < div > or < p > or < h1 > tag etc. and then center the enclosed TTF image via CSS. In case your image also has a background color, your enclosure tag needs to have that background color as well. So if you’re using my plugin, this helped:
< h1 style="text-align:center">||Super Header||||< /h1 >
Also: for compatibility reasons with non-image browsers as well as for Search Engine Optimization (SEO) reasons, you should never render important text (like headings) into images and then not set the ALT tag accordingly. An even better solution is something called “StateScoping” of CSS, shown here:
http://alt.skybound.ca/statescope/
In the upper right corner of the main text content there is a link to switch “scopes”, and you can see the difference between the page rendered with images and without. The example is also somewhat SEO safe, even with images switched on, as the text will still be included in the page and just displaced by CSS.I say “somewhat”, because my latest experience is that Google does interpret the CSS placement for otherwise higher ranking sites to avoid tweaking of sites with SEO code that would never be displayed – such as putting “Nokia, N95, Gizmodo, Samsung, LG, G1, iPhone” within an < div > container that is placed off the screen just so to improve the hit rate on these keywords without actually displaying them :).
Cheers,
Thorsten
thx… great
Content © Playout Intelligence
Proudly powered by WordPress
Theme designed by Artisan Themes
Great ! Great Job ! I finally have this plug in functionning for me, without any coding ! Thank you very much.
I still have one question, do you know how is it possible to have my post title as a permalink, like this blog here : http://neojaponisme.com or here : http://ilovetypography.com/2008/11/28/the-week-...
thank again keep up the good work !
Christian