Login   Register  
PHP Classes
elePHPant
Icontem

Image Fit Text Class

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Kai Ming Choi
Name: Kai Ming Choi <e-mail contact>
Packages: 15 Browse all classes by Kai Ming Choi Browse all classes by
Country: Hong Kong Hong Kong - PHP jobs in Hong Kong
Age: 20
All time rank: 5633 in Hong Kong Hong Kong
Week rank: 190 Up1 in Hong Kong Hong Kong Up
Innovation award
Innovation award
Nominee: 3x


  Detailed description   Download .zip .tar.gz  
This class can adjust font size to fit a text in a limited area.

It can take a given text string and the width and height of an area and tries to fit the text by decreasing the font size.

The class starts from a given initial font size and may stop at a given minimum font size if the text is too large to fit.

The text may wrap around to be split in multiple lines. The length of the wrapped text may be limited to a given minimum.

  Classes of Kai Ming Choi  >  Image Fit Text Class  >  Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Image Fit Text Class
Base name: image-fit-text
Description: Adjust font size to fit a text in a limited area
Version: 0.1
PHP version: 5.0
License: Free To Use But Restricted
All time users: 375 users
All time rank: 5641
Week users: 2 users
Week rank: 1329 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Algorithms Numerical and statistical algorithms View top rated classes
Group folder image Graphics Colors, images, charts and picture formats View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
September 2012
Number 5

Prize: One copy of the Zend Studio
Some applications need to dynamically generate images that contain text.

In some cases the images may not be larger than a given width or height.

This class provides a solution to fit a text in an image of limited width reducing the text font size if necessary.

Manuel Lemos

  User ratings  
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file imagefittext.class.php Class the class
Accessible without login Plain text file example.php Example example
Accessible without login Plain text file font Data Please find font file for the example before you try it

Download all files: image-fit-text.tar.gz image-fit-text.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.