News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Michael Maclean's Blog:
Using Pango for PHP a taster
February 22, 2011 @ 12:58:27

Michael Maclean has a new article today talking about the Pango graphics library and how it can be coupled with the Cairo PECL extension to more easily create better looking text in dynamic images.

The PECL/Cairo library is pretty good at drawing vector graphics (in our opinion, as the developers, at least!), but one thing it's not able to do by itself is draw text with mildly advanced layout. [...] That's because the developers of the Cairo library decided to let another more specialised library handle the job of text layout.

Michael has created a wrapper for Pango in PHP (github) and some sample code that can be used as a test to ensure it's all setup and working. He steps through each part of the image creation and describes what's happening and what each method is doing along the way.

0 comments voice your opinion now!
pango image creation cairo text render tutorial


blog comments powered by Disqus

Similar Posts

DevShed: Introducing the Flyweight Pattern with PHP 5

PHPImpact Blog: 5 great articles on SPL Iterators

Dave Marshall' Blog: Asynchronous cache priming with progress bars via Gearman, Memcache and Dojo

Ivo Jansch's Blog: Validating OCL constraints in PHP objects

Developer.com: Build Multi-lingual Websites With the Zend Framework


Community Events





Don't see your event here?
Let us know!


series interview voicesoftheelephpant zendserver framework conference development tips code community podcast laravel list language release introduction api application developer deployment

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework