http://onionworks.net/2006/imageservice

createFont (familyName : string, size : number) : nodeset

With this method, a character font can be specified with which lettering can be written into an picture file in the method “drawText” of the canvas library. If the parameters “fontSyle” and “graphicsUnit” are not specified, then the default values “Regular” for “fontStyle” and “Point” for “graphicsUnit” are used.

In the following example, the character font Arial with character size 10, font style “bold” and the graphics unit “Point” is created.

<xsl:variable name="font" select="is:createFont('Arial',10,'Bold','Point')" />

The above call of the method would supply the following XML as the return value.

<font name="Arial" size="10" style="Bold" />