[ Index ]
 

Code source de Cr@wltr@ck 2.2.1

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/graphs/artichow/php5/inc/ -> Font.class.php (sommaire)

(pas de description)

Poids: 434 lignes (8 kb)
Inclus ou requis: 2 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 3 classes

awFont:: (4 méthodes):
  __construct()
  draw()
  getTextWidth()
  getTextHeight()

awTTFFont:: (9 méthodes):
  __construct()
  draw()
  getTextWidth()
  getTextHeight()
  getAverageWidth()
  __construct()
  __construct()
  awFont()
  aw()

awTuffy:: (1 méthode):
  awTuffy()


Classe: awFont  - X-Ref

Built-in PHP fonts

__construct($font)   X-Ref
Build the font

param: int $font Font identifier

draw(awDrawer $drawer, awPoint $p, awText $text, $width = NULL)   X-Ref
Draw a text

param: awDrawer $drawer
param: awPoint $p Draw text at this point
param: awText $text The text
param: awText $width Text box width

getTextWidth(awText $text)   X-Ref
Get the width of a string

param: awText $text A string

getTextHeight(awText $text)   X-Ref
Get the height of a string

param: awText $text A string

Classe: awTTFFont  - X-Ref

TTF fonts

__construct($font, $size)   X-Ref
Font file

param: string $font Font file
param: int $size Font size

draw(awDrawer $drawer, awPoint $p, awText $text, $width = NULL)   X-Ref
Draw a text

param: awDrawer $drawer
param: awPoint $p Draw text at this point
param: awText $text The text
param: awText $width Text box width

getTextWidth(awText $text)   X-Ref
Get the width of a string

param: awText $text A string

getTextHeight(awText $text)   X-Ref
Get the height of a string

param: awText $text A string

getAverageWidth()   X-Ref
Get average width of a character

return: int

__construct()   X-Ref
Pas de description

__construct($size)   X-Ref
Pas de description

awFont(parent::awFont('.$i.')   X-Ref
Pas de description

aw(parent::awTTFFont(\''.(ARTICHOW_FONT.DIRECTORY_SEPARATOR.$font.'.ttf')   X-Ref
Pas de description

Classe: awTuffy  - X-Ref

awTuffy($size)   X-Ref
Pas de description



Généré le : Thu Sep 6 14:14:11 2007 par Balluche grâce à PHPXref 0.7