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

Class: Image_Graph_Font

Source Location: /Image_Graph-0.3.0dev1/Graph/Font.php

Class Overview

Image_Graph_Common
   |
   --Image_Graph_Font

A font.


Methods


Child classes:

Image_Graph_Font_Extended
A font with extended functionality.
Image_Graph_Font_Vertical
A vertical font

Inherited Variables

Inherited Methods

Class: Image_Graph_Common

Image_Graph_Common::Image_Graph_Common()
Constructor
Image_Graph_Common::add()
Adds an element to the objects element list, the new Image_Graph_elements parent is automatically set
Image_Graph_Common::addNew()
Creates an object from the class specified and adds it to the objects element list.

Class Details

[line 44]
A font.


[ Top ]


Method Detail

Image_Graph_Font (Constructor)   [line 57]

Image_Graph_Font &Image_Graph_Font( )

Image_Graph_Font [Constructor]

[ Top ]

height   [line 96]

int height( string $text)

Get the height of the text specified in pixels
  • Return: The height of the text using the specified font

Overridden in child classes as:

Image_Graph_Font_TTF::height()
Get the height of the text specified in pixels
Image_Graph_Font_Vertical::height()
Get the height of the text specified in pixels

Parameters:

string   $text   —  The text to calc the height for

[ Top ]

setColor   [line 66]

void setColor( mixed $color)

Set the color of the font

Parameters:

mixed   $color   —  The color object of the Font

[ Top ]

width   [line 86]

int width( string $text)

Get the width of the text specified in pixels
  • Return: The width of the text using the specified font

Overridden in child classes as:

Image_Graph_Font_TTF::width()
Get the width of the text specified in pixels
Image_Graph_Font_Vertical::width()
Get the width of the text specified in pixels

Parameters:

string   $text   —  The text to calc the width for

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:57:45 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.