textPositioning element | SVGTextPositioningElement object
Describes SVG text positioning.
![]() ![]() |
DOM Information
Inheritance Hierarchy
Members
The SVGTextPositioningElement object has these types of members:
Methods
The SVGTextPositioningElement object has these methods.
| Method | Description |
|---|---|
| getCharNumAtPosition |
Gets the index of the character that the glyph cell bounding box contains at the specified point. |
| getComputedTextLength |
Returns the total sum of all advance values from rendering all characters within the given text element. |
| getEndPositionOfChar |
Gets the current text position of the specified character after the character is rendered in the user coordinate system where the glyphs that correspond to the specified character are rendered. |
| getExtentOfChar |
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. |
| getNumberOfChars |
Gets the total number of characters that are available for rendering within the current element. |
| getRotationOfChar |
Gets the rotation value of the specified character, relative to the current user coordinate system where the glyphs that corresponding to the specified character are rendered. |
| getStartPositionOfChar |
Gets the current text position of the specified character before the character is rendered in the user coordinate system where the glyphs that correspond to the specified character are rendered. |
| getSubStringLength |
Calculates the total sum of all advance values from rendering the specified substring of the characters. |
| hasExtension |
Determines if the specified extension is supported. |
| selectSubString |
Selects the specified substring, just as if a user selected the substring interactively. |
Properties
The SVGTextPositioningElement object has these properties.
| Property | Description |
|---|---|
|
Gets the names of the classes that are assigned to this object. | |
|
Gets the dx attribute on the given element. | |
|
Gets the dy attribute on the given element. | |
|
Gets a value that indicates whether referenced resources that are not in the current document are required to correctly render a given element. | |
|
Determines if an element can acquire keyboard focus (that is, receive keyboard events) and be a target for field-to-field navigation actions (such as when a user presses the Tab key). | |
|
Gets or sets the lengthAdjust attribute on the given element. | |
|
Gets the nearest ancestor svg element. | |
|
Gets a white space-delimited list of required language extensions. | |
|
Gets or sets a white space-delimited list of feature strings. | |
|
Gets or sets the supplemental character rotation about the current text position. | |
|
Gets a style object. | |
|
Gets or sets a comma-separated list of language names. | |
|
Gets or sets the textLength attribute on the given element. | |
|
Gets the element that established the current viewport. | |
|
Gets or sets the x-coordinate value. | |
|
Gets or sets the | |
|
Gets or sets a value that specifies the language that is used in the contents and attribute values of an element. | |
|
Gets or sets a value that indicates whether white space is preserved in character data. | |
|
Gets or sets the y-coordinate value. |
Standards information
- Scalable Vector Graphics: Text, Section 10.17.2
Remarks
See also

