Jump to content
The Uniform Server Community


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

1 Follower

About Han

  • Rank

Previous Fields

  • Main OS
    Windows XP
  1. Hi Middleman, When you install Joomla! during one of the steps you have a choice whether you want the sample data included in your database or start with an empty database. Han
  2. Putting a copy of the arial.ttf from c:\windows\fonts in the scripts folder has the effect of not showing an error message. But the created image contains no text. Any explanation why uniserver3_2a does not need a font file in the script folder? I searched php.ini for a font directory, I searched the uniserver3_2a directory tree for font files, but I found nothing. Where is 3_2a getting the font definition? Is 3_5 doing things differently? Thanks, Han
  3. The following script works with Uniserver3_2a, but fails with Uniserver3_5 Error messages says that the font file is missing. Where can I get a font file and what is the location I have to put it? Thanks, Han ++++++++++++++++++++++++++++ function vertText($text, $id) { // Create the image $im = imagecreatetruecolor(20, 80); $background = imagecolorallocate($im, 253, 208, 23); $black = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 19, 79, $background); $font = 'arial.ttf'; // Add the text imagettftext($im, 12, 270, 5, 5, $black, $font, $text); // Create the image with vertical text imagepng($im, "$id.png"); imagedestroy($im); }
  • Create New...