disguise developers

Designer Plugins

Plugins for Disguise Designer software.

SlugFont

Base class: _BlipValue

Properties

alignH : int

alignV : int

bold : bool (Read-Only)

fontSize : float

height : float (Read-Only)

italic : bool (Read-Only)

leadedLineHeight : float (Read-Only)

leading : float

lineHeight : float (Read-Only)

maxHeightInPixels : float (Read-Only)

maxWidthInPixels : float (Read-Only)

tracking : float

Variables

AlignBottom : Final = 2

AlignCenter : Final = 1

AlignLeft : Final = 0

AlignMiddle : Final = 1

AlignRight : Final = 2

AlignTop : Final = 0

Methods

extent(self, s: str, fontSize: float = 0) -> Vec2

extentHeight(self, nLines: int) -> float

printAndRender(self, text: str, pos: Vec, colour: Colour = Colour.white, debugBounds: int = 0, useCache: bool = True)

printDynamic(self, text: str, pos: Vec, pixelSize: float, colour: Colour = Colour.white, alignH: int = 0, alignV: int = 0, tracking: float = 0.0, leading: float = 1.2)

truncateMiddle(self, inputString: str, targetWidth: float, endChars: int, minTruncChars: int) -> str

truncateToWidth(self, inputString: str, targetWidth: float) -> str