getExtentOfChar method

[This documentation is preliminary and is subject to change.]

Gets a rectangle that defines the minimum and maximum x-coordinate and y-coordinate values in the user coordinate system where the glyphs that correspond to the specified character are rendered.

Scalable Vector Graphics: Text, Section 10.17.1Internet Explorer 9

Syntax

ISVGRect retVal = object.getExtentOfChar(charnum);

Standards information

Parameters

  • charnum [in]
    Type: long

    The index of the character, where the first character has an index of 0.

Remarks

The calculations for the rectangle assume that all glyphs occupy the full standard glyph cell for the font. If multiple consecutive characters are rendered inseparably (for example, as a single glyph or a sequence of glyphs), each of the inseparable characters returns the same rectangle.

See also

SVGTextContentElement

 

 

Build date: 1/26/2012