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

Michael Maclean's Blog:
Handling fonts in PECL/Cairo
Mar 02, 2010 @ 18:42:43

Michael Maclean has a look at working with fonts in Cairo (a graphics manipulation extension in the PECL repository). The example will be added to the PHP manual too in case you need it for reference later.

Currently, in PECL/Cairo the only way to draw text is the referred to as the "toy" text API, which is a very basic way of handling text compared to the facilities available in the Cairo library itself. However, it's sufficient for most purposes that I've come across so far.

With the first versions of the Cairo extension, you had to use the selectFontFace method to choose the font you wanted. With the introduction of Cairo 0.2.0, you can now use FreeType font support instead and can use the streams API built into PHP to locate the resource. A snippet of code is included to show how that would work.

tagged: cairo graphic manipulation extension font freetype

Link:

NETTUTS.com:
How To Use Any Font You Wish with FLIR
Aug 19, 2008 @ 20:29:36

NETTUTS.com recently posted a handy tutorial for those wanting to use the font of their choice on their site using sIFR3.

Last week, Philo showed you how to implement sIFR3. This time, I'm going to show you how to implement Facelift Image Replacement (or FLIR), an alternative to sIFR that does not require Flash.

This second part shows you how to install/setup the tool, configure it correctly for your setup and includes some of the pros and cons of using the software.

tagged: tutorial flir font software install configure example

Link:

Mikko Koppanen's Blog:
Creating buttons with Imagick
Nov 22, 2007 @ 23:05:50

Mikko Koppanen has another quick new tutorial on using Imagick in your applications - this time it's about making buttons dynamically.

The button in this example is created after this tutorial http://xeonfx.com/tutorials/easy-button-tutorial/ (yes, I googled "easy button tutorial"). The code and the button it creates are both very simple but the effect looks really nice.

The example code creates a simple round button with a fill color and white text. Their examples show a red, green and blue buttons.

tagged: imagick button tutorial round fill color font imagick button tutorial round fill color font

Link:

Mikko Koppanen's Blog:
Creating buttons with Imagick
Nov 22, 2007 @ 23:05:50

Mikko Koppanen has another quick new tutorial on using Imagick in your applications - this time it's about making buttons dynamically.

The button in this example is created after this tutorial http://xeonfx.com/tutorials/easy-button-tutorial/ (yes, I googled "easy button tutorial"). The code and the button it creates are both very simple but the effect looks really nice.

The example code creates a simple round button with a fill color and white text. Their examples show a red, green and blue buttons.

tagged: imagick button tutorial round fill color font imagick button tutorial round fill color font

Link:


Trending Topics: