Class Font

Description

Text font formating class.

Located in /Font.php (line 7)


	
			
Method Summary
Font Font ([int $size = 10], [string $font = ''], [string $fontColor = ''], [string $backColor = ''])
string getContent ( &$rtf, Rtf $rtf)
void setAnimatedText (integer $animatedText)
void setBold ()
void setItalic ()
void setStrike ([$strike $strike = 1])
void setUnderline ()
Methods
Constructor Font (line 38)

Font constructor

Font Font ([int $size = 10], [string $font = ''], [string $fontColor = ''], [string $backColor = ''])
  • int $size: Font size
  • string $font: Font (etc. "Times new Roman", "Arial" and other)
  • string $fontColor: Font color
  • string $backColor: Background color of font
getContent (line 104)

Gets rtf code of font. Internal use.

  • access: public
string getContent ( &$rtf, Rtf $rtf)
  • Rtf $rtf: Rtf object
  • &$rtf
setAnimatedText (line 94)

Sets animated text properties.

  • access: public
void setAnimatedText (integer $animatedText)
  • integer $animatedText: Animated Text Properties. Possible values:
    '1' => Las Vegas Lights,
    '2' => Blinking background,
    '3' => Sparkle text,
    '4' => Marching black ants,
    '5' => Marching red ants,
    '6' => Shimmer
setBold (line 49)

Sets text bold.

  • access: public
void setBold ()
setItalic (line 57)

Sets text italic.

  • access: public
void setItalic ()
setStrike (line 74)

Sets strikethrough of text.

  • access: public
void setStrike ([$strike $strike = 1])
  • $strike $strike: If 1 then single, if 2 then double
setUnderline (line 65)

Sets text underline.

  • access: public
void setUnderline ()

Documentation generated on Fri, 25 Jan 2008 23:10:50 +0200 by phpDocumentor 1.3.1