Interface ISvgG
interface ISvgG
Extends ISvgNode
Represents a container used to group other SVG elements.
See also - ISvgNode.
Methods
setFontFamily()
Sets the font family for the node. Attribute indicates which font family will be used to render the text specified as a prioritized list of font family names and/or generic family names. Default value is Sans.voidsetFontFamily(stringfontFamily)
Parameters
fontFamily
string — Required
to assign.
setFontSize()
Sets the font size for the node. Attribute refers to the size of the font is from baseline to baseline accurate when multiple lines of text are set solid in a multiline layout environment. Default value is 24.0 withvoidsetFontSize(SvgLengthfontSize)
SvgUnit::Number
Parameters
fontSize
SvgLength — Required
SvgLength the new font size to apply.
setFontStyle()
Sets the fontStyle for the node. Attribute specifies whether the text is to be rendered using a normal, italic, or oblique face. Default value isvoidsetFontStyle(SvgFontStylefontStyle)
SvgFontStyle::NORMAL
Parameters
fontStyle
SvgFontStyle — Required
SvgFontStyle the new font style to apply.
setFontWeight()
Sets the fontWeight for the node. Attribute refers to the boldness or lightness of the glyphs used to render the text, relative to other fonts in the same font family. Default value isvoidsetFontWeight(SvgFontWeightfontWeight)
SvgFontWeight::NORMAL_WEIGHT
Parameters
fontWeight
SvgFontWeight — Required
SvgFontWeight the new font weight to assign.
setLetterSpacing()
Sets the letterSpacing property for the element. Attribute controls spacing between text characters. Default value is nonevoidsetLetterSpacing(SvgLengthletterSpacing)
Parameters
letterSpacing
SvgLength — Required
SvgLength value to set for letterSpacing.
setWordSpacing()
Sets the word-spacing property for the element. Attribute specifies spacing behavior between words. Default value is nonevoidsetWordSpacing(SvgLengthwordSpacing)
Parameters
wordSpacing
SvgLength — Required
SvgLength value to set for word spacing.
setTextAnchor()
Sets the text-anchor property for the element. The text-anchor attribute is used to align (start-, middle- or end-alignment) a string of pre-formatted text or auto-wrapped text where the wrapping area is determined from the inline-size property relative to a given point. Default value isvoidsetTextAnchor(SvgTextAnchortextAnchor)
SvgTextAnchor::START
Parameters
textAnchor
SvgTextAnchor — Required
SvgTextAnchor value to set for text anchoring.

