text
[ class tree: text ] [ index: text ] [ all elements ]

Class: Image_Graph_Font_TTF

Source Location: /Graph/Font/TTF.php

Class Overview

Image_Graph_Common
   |
   --Image_Graph_Font
      |
      --Image_Graph_Font_Extended
         |
         --Image_Graph_Font_TTF

A truetype font.


Methods


Inherited Variables

Inherited Methods

Class: Image_Graph_Font_Extended

Image_Graph_Font_Extended::setAngle()
Set the angle slope of the output font (0 = normal, 90 = bottom and up, 180 = upside down, 270 = top and down)
Image_Graph_Font_Extended::setSize()
Set the size of the font

Class: Image_Graph_Font

Image_Graph_Font::Image_Graph_Font()
Image_Graph_Font [Constructor]
Image_Graph_Font::height()
Get the height of the text specified in pixels
Image_Graph_Font::setColor()
Set the color of the font
Image_Graph_Font::width()
Get the width of the text specified in pixels

Class: Image_Graph_Common

Image_Graph_Common::Image_Graph_Common()
Creates an a instance of Image_Graph_Common.
Image_Graph_Common::add()
Adds an element to the objects element list, the new Image_Graph_elements parent is automatically set
Image_Graph_Common::addColor()
Add a color. Ultimately it should call addColor() from the Image_Graph object
Image_Graph_Common::newColor()
Create a new Image_Graph_color.
Image_Graph_Common::setName()
Sets the name

Class Details

[line 42]
A truetype font.



[ Top ]


Class Methods


constructor Image_Graph_Font_TTF [line 57]

Image_Graph_Font_TTF &Image_Graph_Font_TTF( string $fontFile)

FontTTF [Constructor]



Parameters:

string   $fontFile   The filename of the TTF font file. On Windows systems they will be located in %SYSTEMROOT%\FONTS, ie C:\WINDOWS\FONTS

[ Top ]

method height [line 104]

int height( string $text, [int $angle = false])

Get the height of the text specified in pixels



Tags:

return:  The height of the text using the specified font


Overrides Image_Graph_Font::height() (Get the height of the text specified in pixels)

Parameters:

string   $text   The text to calc the height for
int   $angle   The angle to calculate the height with

[ Top ]

method setFontFile [line 67]

void setFontFile( string $fontFile)

Set another font file



Parameters:

string   $fontFile   The filename of the TTF font file. On Windows systems they will be located in %SYSTEMROOT%\FONTS, ie C:\WINDOWS\FONTS

[ Top ]

method width [line 87]

int width( string $text, [int $angle = false])

Get the width of the text specified in pixels



Tags:

return:  The width of the text using the specified font


Overrides Image_Graph_Font::width() (Get the width of the text specified in pixels)

Parameters:

string   $text   The text to calc the width for
int   $angle   The angle to calculate the width with

[ Top ]


Documentation generated on Wed, 15 Sep 2004 10:30:51 +0200 by phpDocumentor 1.2.3