FontEngine

class in UnityEngine.TextCore.LowLevel

Cambiar al Manual

Descripción

The FontEngine is used to access data from source font files. This includes information about individual characters, glyphs and relevant metrics typically used in the process of text parsing, layout and rendering.

The types of font files supported are TrueType (.ttf, .ttc) and OpenType (.otf).

The FontEngine is also used to raster the visual representation of characters known as glyphs in a given font atlas texture.

Funciones Estáticas

DestroyFontEngineDestroy and unload resources used by the Font Engine.
InitializeFontEngineInitialize the Font Engine and required resources.
LoadFontFaceLoad a source font file.
SetFaceSizeSet the size of the currently loaded font face.
TryGetGlyphWithIndexValueTry loading the glyph for the given index value and if available populate the glyph.
TryGetGlyphWithUnicodeValueTry loading a glyph for the given unicode value. If available, populates the glyph and returns true. Otherwise returns false and populates the glyph with the .notdef / missing glyph data.