Class shardimage\shardimagephp\factories\Text

Inheritanceshardimage\shardimagephp\factories\Text

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
ALIGN_CENTER 'center' Center text alignment. shardimage\shardimagephp\factories\Text
ALIGN_END 'end' Text alignment to the end. shardimage\shardimagephp\factories\Text
ALIGN_JUSTIFY 'justify' Justified text alignment. shardimage\shardimagephp\factories\Text
ALIGN_LEFT 'left' Left text alignment. shardimage\shardimagephp\factories\Text
ALIGN_RIGHT 'right' Right text alignment. shardimage\shardimagephp\factories\Text
ALIGN_START 'start' Text alignment to the start. shardimage\shardimagephp\factories\Text
DECORATION_OVERLINE 'ovl' Overline text decoration. shardimage\shardimagephp\factories\Text
DECORATION_STRIKETHROUGH 'str' Strikethrough text decoration. shardimage\shardimagephp\factories\Text
DECORATION_UNDERLINE 'unl' Underline text decoration. shardimage\shardimagephp\factories\Text
FONT_ACLONICA 'aclonica' shardimage\shardimagephp\factories\Text
FONT_DROIDSANS 'droidsans' shardimage\shardimagephp\factories\Text
FONT_DROIDSANS_BO 'droidsans-bo' shardimage\shardimagephp\factories\Text
FONT_EXO 'exo' shardimage\shardimagephp\factories\Text
FONT_EXO_BL 'exo-bl' shardimage\shardimagephp\factories\Text
FONT_EXO_BLIT 'exo-blit' shardimage\shardimagephp\factories\Text
FONT_EXO_BO 'exo-bo' shardimage\shardimagephp\factories\Text
FONT_EXO_BOIT 'exo-boit' shardimage\shardimagephp\factories\Text
FONT_EXO_EXBO 'exo-exbo' shardimage\shardimagephp\factories\Text
FONT_EXO_EXBOIT 'exo-exboit' shardimage\shardimagephp\factories\Text
FONT_EXO_EXLI 'exo-exli' shardimage\shardimagephp\factories\Text
FONT_EXO_EXLIIT 'exo-exliit' shardimage\shardimagephp\factories\Text
FONT_EXO_IT 'exo-it' shardimage\shardimagephp\factories\Text
FONT_EXO_LI 'exo-li' shardimage\shardimagephp\factories\Text
FONT_EXO_LIIT 'exo-liit' shardimage\shardimagephp\factories\Text
FONT_EXO_ME 'exo-me' shardimage\shardimagephp\factories\Text
FONT_EXO_MEIT 'exo-meit' shardimage\shardimagephp\factories\Text
FONT_EXO_SEBO 'exo-sebo' shardimage\shardimagephp\factories\Text
FONT_EXO_SEBOIT 'exo-seboit' shardimage\shardimagephp\factories\Text
FONT_EXO_TH 'exo-th' shardimage\shardimagephp\factories\Text
FONT_EXO_THIT 'exo-thit' shardimage\shardimagephp\factories\Text
FONT_JUSTANOTHERHAND 'justanotherhand' shardimage\shardimagephp\factories\Text
FONT_MONTEZ 'montez' shardimage\shardimagephp\factories\Text
FONT_OPENSANS 'opensans' shardimage\shardimagephp\factories\Text
FONT_OPENSANS_BO 'opensans-bo' shardimage\shardimagephp\factories\Text
FONT_OPENSANS_BOIT 'opensans-boit' shardimage\shardimagephp\factories\Text
FONT_OPENSANS_EXBO 'opensans-exbo' shardimage\shardimagephp\factories\Text
FONT_OPENSANS_IT 'opensans-it' shardimage\shardimagephp\factories\Text
FONT_OPENSANS_LI 'opensans-li' shardimage\shardimagephp\factories\Text
FONT_OPENSANS_LIIT 'opensans-liit' shardimage\shardimagephp\factories\Text
FONT_OPENSANS_SEBO 'opensans-sebo' shardimage\shardimagephp\factories\Text
FONT_OPENSANS_SEBOIT 'opensans-seboit' shardimage\shardimagephp\factories\Text
FONT_PENSANS_EXBOIT 'pensans-exboit' shardimage\shardimagephp\factories\Text
FONT_ROBOTO 'roboto' shardimage\shardimagephp\factories\Text
FONT_ROBOTO_BL 'roboto-bl' shardimage\shardimagephp\factories\Text
FONT_ROBOTO_BLIT 'roboto-blit' shardimage\shardimagephp\factories\Text
FONT_ROBOTO_BO 'roboto-bo' shardimage\shardimagephp\factories\Text
FONT_ROBOTO_BOIT 'roboto-boit' shardimage\shardimagephp\factories\Text
FONT_ROBOTO_IT 'roboto-it' shardimage\shardimagephp\factories\Text
FONT_ROBOTO_LI 'roboto-li' shardimage\shardimagephp\factories\Text
FONT_ROBOTO_LIIT 'roboto-liit' shardimage\shardimagephp\factories\Text
FONT_ROBOTO_ME 'roboto-me' shardimage\shardimagephp\factories\Text
FONT_ROBOTO_MEIT 'roboto-meit' shardimage\shardimagephp\factories\Text
FONT_ROBOTO_TH 'roboto-th' shardimage\shardimagephp\factories\Text
FONT_ROBOTO_THIT 'roboto-thit' shardimage\shardimagephp\factories\Text
FONT_TINOS 'tinos' shardimage\shardimagephp\factories\Text
FONT_TINOS_BO 'tinos-bo' shardimage\shardimagephp\factories\Text
FONT_TINOS_BOIT 'tinos-boit' shardimage\shardimagephp\factories\Text
FONT_TINOS_IT 'tinos-it' shardimage\shardimagephp\factories\Text
FONT_YELLOWTAIL 'yellowtail' shardimage\shardimagephp\factories\Text
STYLE_ITALIC 'italic' Italic text style. shardimage\shardimagephp\factories\Text
STYLE_OBLIQUE 'oblique' Oblique text style. shardimage\shardimagephp\factories\Text
WEIGHT_BLACK 'black' Black font weight. shardimage\shardimagephp\factories\Text
WEIGHT_BOLD 'bold' Bold font weight. shardimage\shardimagephp\factories\Text
WEIGHT_LIGHT 'light' Light font weight. shardimage\shardimagephp\factories\Text
WEIGHT_MEDIUM 'medium' Medium font weight. shardimage\shardimagephp\factories\Text
WEIGHT_NORMAL 'normal' Normal font weight. shardimage\shardimagephp\factories\Text
WEIGHT_THIN 'thin' Thin font weight. shardimage\shardimagephp\factories\Text
WEIGHT_W100 'w100' 100 font weight. shardimage\shardimagephp\factories\Text
WEIGHT_W200 'w200' 200 font weight. shardimage\shardimagephp\factories\Text
WEIGHT_W300 'w300' 300 font weight. shardimage\shardimagephp\factories\Text
WEIGHT_W400 'w400' 400 font weight. shardimage\shardimagephp\factories\Text
WEIGHT_W500 'w500' 500 font weight. shardimage\shardimagephp\factories\Text
WEIGHT_W600 'w600' 600 font weight. shardimage\shardimagephp\factories\Text
WEIGHT_W700 'w700' 700 font weight. shardimage\shardimagephp\factories\Text
WEIGHT_W800 'w800' 800 font weight. shardimage\shardimagephp\factories\Text
WEIGHT_W900 'w900' 900 font weight. shardimage\shardimagephp\factories\Text

Method Details

__toString() public method

Magic method for string casting.

public string __toString ( )
align() public method

Sets the text alignment.

public \self align ( $align )
$align string

Text alignment.

                 <br>
                 <li>"left"
                 <li>"center"
                 <li>"right"
                 <li>"justify"
                 <li>"start"
                 <li>"end"
base64() public method

Turns on base64 encoding for the text.

public \self base64 ( )
create() public static method

Creates a new Text object.

public static \self create ( $text )
$text string

Text

decoration() public method

Sets the text decoration.

public \self decoration ( $decoration )
$decoration string

Text decoration

                      <br>
                      <li>"underline"
                      <li>"overline"
                      <li>"strike"
font() public method

Sets the font family.

public \self font ( $font )
$font string

Font family.

letterSpacing() public method

Sets the letter spacing.

public \self letterSpacing ( $letterSpacing )
$letterSpacing integer

Letter spacing in pixels

lineSpacing() public method

Sets the line spacing.

public \shardimage\shardimagephp\factories\type lineSpacing ( $lineSpacing )
$lineSpacing integer

Line spacing in pixels

size() public method

Sets the font size.

public \self size ( $size )
$size integer

Font size in pixels

strokeColor() public method

Sets the stroke color.

public \self strokeColor ( $color )
$color string

Color in CSS format

strokeWidth() public method

Sets the stroke width.

public \self strokeWidth ( $width )
$width integer

Width in pixels

style() public method

Sets the text style.

public \self style ( $style )
$style string

Text style

                 <br>
                 <li>"italic"
                 <li>"oblique"
weight() public method

Sets the font weight.

public \self weight ( $weight )
$weight string

Font weight

                  <br>
                  <li>"normal"
                  <li>"bold"
wrap() public method

Turns on text wrapping.

public \self wrap ( )