Font
class Font : Object
Description
Represents a font atlas. Force has a very limited API with Font's because it still BETA, so you can use Font only to set it to some Text component and access as read-only for properties of font atlas.
Constructors
Font
Construct the new Font without asset attached.
Properties
channels
Count of channels of out font texture. 3 == RGB8, 4 == RGBA8. [Read Only]
pixelRange
The pixel component of the total distance range of the font atlas. [Read Only]
miterLimit
The miter limit for bounds computation of the font atlas. [Read Only]
padding
The padding between glyph boxes of the font atlas. [Read Only]
packerScale
The fixed glyph scale during font packing to font atlas texture. [Read Only]
angleThreshold
Coloring angle threshold of font atlas texture. [Read Only]
isPreprocessGeometry
Should geometry of font atlas be a preprocessed during build font atlas? [Read Only]
isKerningEnabled
Should this font atlas build with kerning enabled? [Read Only]
useExpensiveColoring
Should this font atals build with expensive coloring? This depends on the channels of atlas. [Read Only].
Methods
ToString
String representation of Font.
GetAsset
Returns the font asset.
See Also
Last updated