http://onionworks.net/2006/imageservice

createTextFormat (alignment : string, angle : number, interCharacterSpace : number) : nodeset

This method serves for the alignment of text elements which can be drawn with the method “drawText” of the canvas library. The alignment, angle and character spacing of the text can be set with the parameters “alignment”, “angle” and “interCharacterSpace”. Possible values for the parameter “alignment” can be seen in the following table.

  • Left
  • Center
  • Right
  • Justify

In the following example, a TextFormat with left alignment, an angle of 10 degrees and a character spacing of 2 is created.

<xsl:variable name="textFormat" select="is:createTextFormat('Left',10,2)" />