Home
 

Customer Support

Search for keywords:

Browse by category:

Do you have True Type fonts?

The True Type Fonts that are installed are available under the /usr/share/fonts/ directory.

If you want to use other TTFs you will need to upload them yourself to a separate directory and specify the full path to your own fonts in any scripts or programs that are using them.

User-Contributed Notes

add a note
31-Dec-2002 13:17
An example of how to use TTF fonts in an image:

<?php
     header ("Content-type: image/png");
     $im = imagecreate (400, 30);
     $black = imagecolorallocate ($im, 0, 0, 0);
     $white = imagecolorallocate ($im, 255, 255, 255);
     imagettftext ($im, 20, 0, 10, 20, -$white, 
              "/usr/share/fonts/default/TrueType/arib____.ttf", "Ich
will muss");
     imagepng ($im);
     imagedestroy ($im);
     exit;
?>

22-May-2005 15:02
Personally, I had to modify the sample above to have it working.

->line 7 should read:
imagepng ($im,"im.png");

->and I removed the line 9 (exit;) in order to not have a blank page.

->Then to display your image add this wherever you want your image
displayed:
<img src="im.png" border=0>

add a note

Related Questions:


Can I use ImageMagick?

What version of GD lib do you support?

What version of Ghostscript is available?

Browse Categories:

Getting Started, FTP, Telnet/SSH, Moving Domains, E-mail, Traffic Reports, Mailing Lists, Apache, PHP, CGI, Other Server-Side Scripting, MySQL Database, Imaging Libraries, Other Software, Billing & Terms, Control Panel, E-commerce, Pre-Sales


Tiny Modwest Logo         Copyright 2000-2008 by Modwest, Inc.          About Us    |    Blog    |    Jobs    |    Web Design    |    Contact Us