GraphicsFont#

class ansys.stk.core.graphics.GraphicsFont#

A font that is suitable for use with the text batch primitive. For best performance, avoid creating duplicate font objects. Instead assign the same font object to several text batch primitives.

Overview#

name

Get the typeface name of the font.

size

Get the size of the font.

bold

Get a value that indicates whether this font is bold.

italic

Get a value that indicates whether this font is italic.

underline

Get a value that indicates whether this font is underlined.

strikeout

Get a value that indicates whether this font has a horizontal line through its characters.

outline

Get a value that indicates whether this font has an outline around its characters.

style

Get the font style enumeration that contains the style for this font. This does not include the outline property.

antialias

Get a value that indicates whether this font is antialiased.

Import detail#

from ansys.stk.core.graphics import GraphicsFont

Property detail#

property GraphicsFont.name: str#

Get the typeface name of the font.

property GraphicsFont.size: int#

Get the size of the font.

property GraphicsFont.bold: bool#

Get a value that indicates whether this font is bold.

property GraphicsFont.italic: bool#

Get a value that indicates whether this font is italic.

property GraphicsFont.underline: bool#

Get a value that indicates whether this font is underlined.

property GraphicsFont.strikeout: bool#

Get a value that indicates whether this font has a horizontal line through its characters.

property GraphicsFont.outline: bool#

Get a value that indicates whether this font has an outline around its characters.

property GraphicsFont.style: FontStyle#

Get the font style enumeration that contains the style for this font. This does not include the outline property.

property GraphicsFont.antialias: bool#

Get a value that indicates whether this font is antialiased.