drawsvg iconDRAWSVG user's guide
PreviousNextContentsPDFdrawsvg home

7.3. Text style properties

These properties are only applicable to texts.

See draw simple text , multiline text , text editor showcases for interactive demonstrations.

Table 7.3. Text style properties

MenuPropertyDescription
Image text-style-1.png

family, size, style

Image text-style-2.png

weight, anchor, decoration

family Select font family.

https://www.w3.org/TR/SVG/text.html#FontFamilyProperty
size Defines font size.

https://www.w3.org/TR/SVG/text.html#FontSizeProperty
style Defines font style.

https://www.w3.org/TR/SVG/text.html#FontStyleProperty
weight Defines font weight.

https://www.w3.org/TR/SVG/text.html#FontWeightProperty
anchor Defines the text anchor.

https://www.w3.org/TR/SVG/text.html#TextAnchorProperty
decoration This property describes decorations that are added to the text of an element.

https://www.w3.org/TR/SVG/text.html#TextDecorationProperty

Note

Fill and stroke properties are also applicable to text.