What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » TrueType Fonts in PHP

TrueType Fonts in PHP
Author: Message:
KeyStorm
Elite Member
*****

Avatar
Inn-sewer-ants-pollie-sea

Posts: 2156
Reputation: 45
38 / Male / –
Joined: Jan 2003
O.P. RE: TrueType Fonts in PHP
huh, sorry: 'with-ttf=/usr/' and ''--enable-gd-imgstrttf'' I almost miss them.

code:
<?php
  //header("Content-type: image/jpeg");
  $im = imagecreate(400, 30);
  $white = imagecolorallocate($im, 255, 255, 255);
  $black = imagecolorallocate($im, 0, 0, 0);


  imagettftext($im, 20, 0, 10, 20, $black, "_sans",  "Testing... Omega: &amp;#937;");
               //I tried many common font names in font
  imagejpeg($im, 'test.png');
  imagedestroy($im);
?>
<img src=test.png border=1>


I have uploaded those two fonts from my font folder (maybe crappy idea):
/fonts/tahoma.ttf (apparently ClearType)
/fonts/decotype.ttf (apparently TT)
02-12-2004 07:57 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
TrueType Fonts in PHP - by KeyStorm on 02-12-2004 at 06:46 PM
RE: TrueType Fonts in PHP - by fluffy_lobster on 02-12-2004 at 07:17 PM
RE: TrueType Fonts in PHP - by KeyStorm on 02-12-2004 at 07:34 PM
RE: TrueType Fonts in PHP - by fluffy_lobster on 02-12-2004 at 07:41 PM
RE: TrueType Fonts in PHP - by KeyStorm on 02-12-2004 at 07:44 PM
RE: TrueType Fonts in PHP - by fluffy_lobster on 02-12-2004 at 07:49 PM
RE: TrueType Fonts in PHP - by KeyStorm on 02-12-2004 at 07:57 PM
RE: TrueType Fonts in PHP - by fluffy_lobster on 02-12-2004 at 08:09 PM
RE: TrueType Fonts in PHP - by KeyStorm on 02-12-2004 at 08:33 PM
RE: TrueType Fonts in PHP - by fluffy_lobster on 02-12-2004 at 08:37 PM
RE: TrueType Fonts in PHP - by KeyStorm on 02-12-2004 at 08:47 PM
RE: TrueType Fonts in PHP - by fluffy_lobster on 02-12-2004 at 08:55 PM
RE: TrueType Fonts in PHP - by KeyStorm on 02-12-2004 at 09:02 PM
RE: TrueType Fonts in PHP - by WDZ on 02-12-2004 at 09:05 PM
RE: TrueType Fonts in PHP - by fluffy_lobster on 02-12-2004 at 09:09 PM
RE: TrueType Fonts in PHP - by KeyStorm on 02-12-2004 at 09:34 PM
RE: TrueType Fonts in PHP - by bach_m on 02-12-2004 at 11:37 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On