getExtentOfChar method

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



ISVGRect retVal = object.getExtentOfChar(charnum);


charnum [in]

Type: long

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

Standards information


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