linea21-externals
[ class tree: linea21-externals ] [ index: linea21-externals ] [ all elements ]

Class: awFileFont

Source Location: /class/system/artichow/php5/inc/Font.class.php

Class Overview

awFont
   |
   --awFileFont

Class for fonts that can be transformed (rotated, skewed, etc.), like TTF or FDB fonts for example.


Variables

Methods


Child classes:

awTTFFont
Class representing TTF fonts

Inherited Methods

Class: awFont

awFont::__construct()
Build the font
awFont::draw()
Draw a text

Class Details

[line 84]
Class for fonts that can be transformed (rotated, skewed, etc.), like TTF or FDB fonts for example.



[ Top ]


Class Variables

$extension =

[line 105]

The font filename extension



Tags:

access:  protected

Type:   string


[ Top ]

$name =

[line 91]

The name of the font, without the extension



Tags:

access:  protected

Type:   string


[ Top ]

$size =

[line 98]

The size of the font



Tags:

access:  protected

Type:   int


[ Top ]



Class Methods


constructor __construct [line 107]

awFileFont __construct( $name, $size)



Tags:

access:  public


Overridden in child classes as:

awTTFFont::__construct()

Overrides awFont::__construct() (Build the font)

Parameters:

   $name  
   $size  

[ Top ]

method getExtension [line 178]

string getExtension( )

Get the filename extension for that font



Tags:

access:  public


[ Top ]

method getName [line 142]

string getName( )

Return the name of the font, i.e. the absolute path and the filename, without the extension.



Tags:

access:  public


[ Top ]

method getSize [line 160]

int getSize( )

Return the size of the font, in pixels



Tags:

access:  public


[ Top ]

method setExtension [line 169]

void setExtension( string $extension)

Set the extension, without the dot



Tags:

access:  public


Parameters:

string   $extension  

[ Top ]

method setName [line 121]

void setName( string $name)

Set the name of the font. The $name variable can contain the full path, or just the filename. Artichow will try to do The Right Thing, as well as set the extension property correctly if possible.



Tags:

access:  public


Parameters:

string   $name  

[ Top ]

method setSize [line 151]

void setSize( int $size)

Set the size of the font, in pixels



Tags:

access:  public


Parameters:

int   $size  

[ Top ]


Documentation generated on Thu, 03 May 2012 15:04:40 +0200 by phpDocumentor 1.4.1