stringWidth — Function that simply calls the stringWidth template.
<xsl:function name="func:stringWidth"> <xsl:param name="str"/> <xsl:param name="fontName"/> <xsl:param name="variant"/> ... </xsl:function>
This function was created because, in some cases, it is more simple to call a function than a template. The stringWidth
template
computes the width of a string with respect to the metrics files.