http://onionworks.net/2006/imageservice

loadFont (target : xlink, fromDataSource : boolean, size : number) : nodeset

With this method, a character font can be loaded from a file. Character fonts can be loaded directly via the data source (default) or via a binary method. If the character font is loaded via a binary method, then the parameter “fromDataSource” must be allocated the value “false”. If the character font is loaded via a data source however, then the parameter “fromDataSource” can be omitted, since it is allocated the value “true” by default.

If the parameters “fontSyle” and “graphicsUnit” are not specified, then the default values “Regular” for “fontStyle” and “Point” for “graphicsUnit” are used.

The syntax of the method can be seen in the following example. The variable “src” contains the xlink of the data source.

<xsl:variable name="font" select="is:loadFont(@src,true(),10,'Bold','Inch')" />

The variable “font” contains the following XML

<font name="Example Font" size="10" style="Bold" />