ProtectedconstructorOptionalisInternalConstructor: booleanReturns a reference handle for this resource.
Returns the meta data of this resource.
Name of the resource. Use primarily for easier identification and not important to the engine itself.
Returns a universally unique identifier of this resource.
Calculate the dimensions for the text.
The size of the font.
OptionalmaximumWidth: number
(Optional) The maximum width to enforce a line breaks.
OptionalwordBreak: booleanOptionalelision: EnumValue<ElisionType>Duplicates the resource and creates a unique UUID for the duplicated resource.
The duplicated resource or null, if the duplication failed.
Finds the available font size closest to the provided size.
Size of the font in points.
Nearest available font size.
Returns font data for a specific font size. In the case the font is dynamic, this method will not create new data for the given size. Use GetOrCreateData instead.
Size of the font in points.
OptionalisLinearlyScaled: boolean
Whether or not the font should use linear advancing for glyphs, instead of pixel aligned values.
Data object if it exists, false otherwise.
Returns font data for a specific font size. If no such data exists and the font IsDynamic() new data will be created. If the font is not dynamic, the nearest baked font data will be returned.
Size of the font in points.
OptionalisLinearlyScaled: boolean
Whether or not the font should use linear advancing for glyphs, instead of pixel aligned values.
An existing Data object if it exists or a newly created one.
Returns font data for a specific font size. If no such data exists and the font IsDynamic() new data will be created.
Size of the font in points.
OptionalisLinearlyScaled: boolean
Whether or not the font should use linear advancing for glyphs, instead of pixel aligned values.
An existing Data object if it exists or a newly created one.
Returns the requested font bitmap texture page.
The bitmap page index to be returned.
The requested texture page or if not found.
Gets the list of bitmap texture pages.
Checks if the font supports dynamic glyph generation. The font needs FontImporterOptions::dynamic set to true when importing it.
Virtual
Method called by RSX to perform actions required after the creation of the resource.
Prepares all characters in for rendering. If any character in is not rendered yet, it will be rendered and inserted into a suitable texture page.
OptionalisLinearlyScaled: booleanForcefully unloads the resource.
Font resource containing data about textual characters and how to render text. Contains one or multiple font bitmaps, each for a specific size.