GraphicsFontFactory#

class ansys.stk.core.graphics.GraphicsFontFactory#

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#

initialize_with_name_size_font_style_outline

Initialize a graphics font with the given arguments.

initialize_with_name_size

Initialize a graphics font with the typeface name and size.

Import detail#

from ansys.stk.core.graphics import GraphicsFontFactory

Method detail#

GraphicsFontFactory.initialize_with_name_size_font_style_outline(self, name: str, size: int, font_style: FontStyle, outline: bool) GraphicsFont#

Initialize a graphics font with the given arguments.

Parameters:

name : str

size : int

font_style : FontStyle

outline : bool

Returns:

GraphicsFont

GraphicsFontFactory.initialize_with_name_size(self, name: str, size: int) GraphicsFont#

Initialize a graphics font with the typeface name and size.

Parameters:

name : str

size : int

Returns:

GraphicsFont