Connecting Tech Pros Worldwide Help | Site Map

size of "images" created by imagestring

 
LinkBack Thread Tools Search this Thread
  #1  
Old August 9th, 2006, 08:15 PM
yawnmoth
Guest
 
Posts: n/a
Default size of "images" created by imagestring

imagestring essentially turns text strings into images. Unfortunately,
these images can be of any size and, as far as I know, an images size
needs to be decided upon before imagestring is called.

So is there anyway the size that imagestring would require could be
calculated before the image was created?

When TTF fonts are used, the imagettfbbox function can be used to do
this, but what if TTF fonts aren't being used?


  #2  
Old August 10th, 2006, 01:15 AM
Carl Vondrick
Guest
 
Posts: n/a
Default Re: size of "images" created by imagestring

yawnmoth wrote:
Quote:
imagestring essentially turns text strings into images.
Try using the GD library -- much more powerful.
  #3  
Old August 10th, 2006, 03:45 PM
yawnmoth
Guest
 
Posts: n/a
Default Re: size of "images" created by imagestring


Carl Vondrick wrote:
Quote:
yawnmoth wrote:
Quote:
imagestring essentially turns text strings into images.
>
Try using the GD library -- much more powerful.
Correct me if I'm wrong, but wouldn't I have to specify a font if I
were to use the GD library?

Or is there a way for me to convert text strings to images while using
some of the built-in fonts that already exist (such as those that
imagestring uses?)

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.