SVGTextContentElement

Overview

The SVGTextContentElement interface is implemented by elements that support rendering child text content. It is inherited by various text-related interfaces, such as SVGTextElement, SVGTSpanElement, SVGTRefElement, SVGAltGlyphElement and SVGTextPathElement.

Location


 

getCharNumAtPosition

Returns a long representing the character which caused a text glyph to be rendered at a given position in the coordinate system. Because the relationship between characters and glyphs is not one-to-one, only the first character of the relevant typographic character is returned

 

method getCharNumAtPosition: Int64

 

Int64 getCharNumAtPosition()

 

func getCharNumAtPosition() -> Int64

 

Int64 getCharNumAtPosition()

 

Function getCharNumAtPosition() As Int64

getComputedTextLength

Returns a float representing the computed length for the text within the element.

 

method getComputedTextLength: String

 

String getComputedTextLength()

 

func getComputedTextLength() -> String

 

String getComputedTextLength()

 

Function getComputedTextLength() As String

getNumberOfChars

Returns a long representing the total number of addressable characters available for rendering within the current element, regardless of whether they will be rendered.

 

method getNumberOfChars: Int64

 

Int64 getNumberOfChars()

 

func getNumberOfChars() -> Int64

 

Int64 getNumberOfChars()

 

Function getNumberOfChars() As Int64

getRotationOfChar

Returns a float representing the rotation of typographic character.

 

method getRotationOfChar: Double

 

Double getRotationOfChar()

 

func getRotationOfChar() -> Double

 

Double getRotationOfChar()

 

Function getRotationOfChar() As Double

getSubStringLength

Returns a float representing the computed length of the formatted text advance distance for a substring of text within the element. Note that this method only accounts for the widths of the glyphs in the substring and any extra spacing inserted by the CSS 'letter-spacing' and 'word-spacing' properties. Visual spacing adjustments made by the 'x' attribute is ignored.

 

method getSubStringLength: HTMLElement

 

HTMLElement getSubStringLength()

 

func getSubStringLength() -> HTMLElement

 

HTMLElement getSubStringLength()

 

Function getSubStringLength() As HTMLElement

textLength

 

property textLength: Int32 read;

 

Int32 textLength { get; }

 

var textLength: Int32 { get{} }

 

Int32 textLength { __get; }

 

ReadOnly Property textLength() As Int32

 

textLength

 

property textLength: Int32 read;

 

Int32 textLength { get; }

 

var textLength: Int32 { get{} }

 

Int32 textLength { __get; }

 

ReadOnly Property textLength() As Int32

 

getCharNumAtPosition

Returns a long representing the character which caused a text glyph to be rendered at a given position in the coordinate system. Because the relationship between characters and glyphs is not one-to-one, only the first character of the relevant typographic character is returned

 

method getCharNumAtPosition: Int64

 

Int64 getCharNumAtPosition()

 

func getCharNumAtPosition() -> Int64

 

Int64 getCharNumAtPosition()

 

Function getCharNumAtPosition() As Int64

getComputedTextLength

Returns a float representing the computed length for the text within the element.

 

method getComputedTextLength: String

 

String getComputedTextLength()

 

func getComputedTextLength() -> String

 

String getComputedTextLength()

 

Function getComputedTextLength() As String

getNumberOfChars

Returns a long representing the total number of addressable characters available for rendering within the current element, regardless of whether they will be rendered.

 

method getNumberOfChars: Int64

 

Int64 getNumberOfChars()

 

func getNumberOfChars() -> Int64

 

Int64 getNumberOfChars()

 

Function getNumberOfChars() As Int64

getRotationOfChar

Returns a float representing the rotation of typographic character.

 

method getRotationOfChar: Double

 

Double getRotationOfChar()

 

func getRotationOfChar() -> Double

 

Double getRotationOfChar()

 

Function getRotationOfChar() As Double

getSubStringLength

Returns a float representing the computed length of the formatted text advance distance for a substring of text within the element. Note that this method only accounts for the widths of the glyphs in the substring and any extra spacing inserted by the CSS 'letter-spacing' and 'word-spacing' properties. Visual spacing adjustments made by the 'x' attribute is ignored.

 

method getSubStringLength: HTMLElement

 

HTMLElement getSubStringLength()

 

func getSubStringLength() -> HTMLElement

 

HTMLElement getSubStringLength()

 

Function getSubStringLength() As HTMLElement