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
look at http://funmail.keystorm.net/MP!/test.php

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

  // Replace path by your own font path
  imagettftext($im, 20, 0, 10, 20, $black, "./fonts/decotype.ttf",
  "Testing... Omega: &amp;#937;");
  imagejpeg($im, 'test.png');
  imagedestroy($im);
?>
<img src=test.png border=1>


(I tried /fonts/decotype.ttf aswell, as stated in the php doc-page you told me)
02-12-2004 08:47 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