Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface ISvgG

interface ISvgG
Extends ISvgNode Represents a container used to group other SVG elements. See also - ISvgNode.

Methods

setFontFamily()

void setFontFamily(string fontFamily)
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.

Parameters

fontFamily
string — Required to assign.

setFontSize()

void setFontSize(SvgLength fontSize)
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 with SvgUnit::Number

Parameters

fontSize
SvgLength — Required SvgLength the new font size to apply.

setFontStyle()

void setFontStyle(SvgFontStyle fontStyle)
Sets the fontStyle for the node. Attribute specifies whether the text is to be rendered using a normal, italic, or oblique face. Default value is SvgFontStyle::NORMAL

Parameters

fontStyle
SvgFontStyle — Required SvgFontStyle the new font style to apply.

setFontWeight()

void setFontWeight(SvgFontWeight fontWeight)
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 is SvgFontWeight::NORMAL_WEIGHT

Parameters

fontWeight
SvgFontWeight — Required SvgFontWeight the new font weight to assign.

setLetterSpacing()

void setLetterSpacing(SvgLength letterSpacing)
Sets the letterSpacing property for the element. Attribute controls spacing between text characters. Default value is none

Parameters

letterSpacing
SvgLength — Required SvgLength value to set for letterSpacing.

setWordSpacing()

void setWordSpacing(SvgLength wordSpacing)
Sets the word-spacing property for the element. Attribute specifies spacing behavior between words. Default value is none

Parameters

wordSpacing
SvgLength — Required SvgLength value to set for word spacing.

setTextAnchor()

void setTextAnchor(SvgTextAnchor textAnchor)
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 is SvgTextAnchor::START

Parameters

textAnchor
SvgTextAnchor — Required SvgTextAnchor value to set for text anchoring.
Last modified on October 29, 2026