Preview from a font

Alles, was PHP betrifft, kann hier besprochen werden.

Preview from a font

Postby shuguesebookers » 17. February 2009 16:16


is there any way (librairy) of giving PHP a typo font (TTF, MAC FONT, etc...)
And get a JPG preview of what this font looks like ?
(following a exemple sentence "A zebra love 12 elephants.")

sthing like that :

//abstract desire code :
$font_preview = new FontPreviewer ();
$font_preview.font = 'fonts/Helevtica_neue_bold.ttf';
$font_preview.pattern = 'A zebra love 12 elephants.';
$font_preview.destination = 'images/HelevBold_preview.jpg';

Or any other way, Thanks, Sylvain.
Posts: 3
Joined: 13. February 2009 11:02

Re: Preview from a font

Postby Xardas der Dunkle » 17. February 2009 17:08

User avatar
Xardas der Dunkle
Posts: 482
Joined: 09. March 2008 19:40
Location: /var/www

Return to PHP

Who is online

Users browsing this forum: No registered users and 1 guest