Shodo

Class Shodo.Font

Object
   |
   +--Shodo.Font

class Shodo.Font

 
Method Summary
 void disableVML()
           Disable VML rendering (for Internet Explorer only).
 void drawAbove(<String> string, <Number> x, <Number> y, <Number> offset, <Number> linespacing)
           Draw the specified string center aligned above the specified point (plus any specified vertical offset).
 void drawAlignedTo(<String> string, <Number> x, <Number> y, <Number> linespacing, <Number> angle)
           Draw the specified string aligned to the specified point in the canvas.
 void drawBelow(<String> string, <Number> x, <Number> y, <Number> offset, <Number> linespacing)
           Draw the specified string center aligned below the specified point (plus any specified vertical offset).
 void drawLeftOf(<String> string, <Number> x, <Number> y, <Number> offset, <Number> linespacing)
           Draw the specified string right aligned and vertically centered to the left of the specified point (plus any specified horizontal offset).
 void drawRightOf(<String> string, <Number> x, <Number> y, <Number> offset, <Number> linespacing)
           Draw the specified string left aligned and vertically centered to the right of the specified point (plus any specified horizontal offset).
 void drawString(<String> string, <Number> x, <Number> y, <Number> linespacing, <String> align, <Number> angle)
           Draw the specified string into the font's canvas.
 void enableVML()
           Enable VML rendering (for Internet Explorer only).
 Array getBounds(<String> string, <Number> x, <Number> y, <Number> linespacing, <Number> angle)
           Compute the bounding box of the specified string drawn using the specified font/size/color, linespacing, and rotation angle.
 Number getHeight()
           Returns the Height property (in pixels) of this font.


Method Detail

disableVML

void disableVML()

drawAbove

void drawAbove(<String> string, <Number> x, <Number> y, <Number> offset, <Number> linespacing)

drawAlignedTo

void drawAlignedTo(<String> string, <Number> x, <Number> y, <Number> linespacing, <Number> angle)

drawBelow

void drawBelow(<String> string, <Number> x, <Number> y, <Number> offset, <Number> linespacing)

drawLeftOf

void drawLeftOf(<String> string, <Number> x, <Number> y, <Number> offset, <Number> linespacing)

drawRightOf

void drawRightOf(<String> string, <Number> x, <Number> y, <Number> offset, <Number> linespacing)

drawString

void drawString(<String> string, <Number> x, <Number> y, <Number> linespacing, <String> align, <Number> angle)

enableVML

void enableVML()

getBounds

Array getBounds(<String> string, <Number> x, <Number> y, <Number> linespacing, <Number> angle)

getHeight

Number getHeight()

Shodo

Documentation generated by JSDoc on Fri Mar 28 11:55:48 2008