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#

antialias

Get a value that indicates whether this font is antialiased.

bold

Get a value that indicates whether this font is bold.

italic

Get a value that indicates whether this font is italic.

name

Get the typeface name of the font.

outline

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

size

Get the size of the font.

strikeout

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

style

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

underline

Get a value that indicates whether this font is underlined.

Import detail#

from ansys.stk.core.graphics import GraphicsFont

Property detail#

property GraphicsFont.antialias: bool#

Get a value that indicates whether this font is antialiased.

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.name: str#

Get the typeface name of the font.

property GraphicsFont.outline: bool#

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

property GraphicsFont.size: int#

Get the size of the font.

property GraphicsFont.strikeout: bool#

Get a value that indicates whether this font has a horizontal line through 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.underline: bool#

Get a value that indicates whether this font is underlined.