GlyphLoadFlags

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

The various options (flags) used by the FontEngine when loading glyphs from a font face.

Properties

LOAD_DEFAULTLoad glyph metrics and bitmap representation if available for the current face size.
LOAD_NO_SCALELoad glyphs at default font units without scaling. This flag implies LOAD_NO_HINTING and LOAD_NO_BITMAP and unsets LOAD_RENDER.
LOAD_NO_HINTINGLoad glyphs without hinting.
LOAD_RENDERLoad glyph metrics and render outline using 8-bit or antialiased image of the glyph.
LOAD_NO_BITMAPLoad glyphs and ignore embedded bitmap strikes.
LOAD_FORCE_AUTOHINTLoad glyphs using the auto hinter instead of the font's native hinter.
LOAD_MONOCHROMELoad glyph metrics and render outline using 1-bit monochrome.
LOAD_NO_AUTOHINTLoad glyphs using the font's native hinter.
LOAD_COMPUTE_METRICSLoad glyph metrics without using the 'hdmx' table. This flag is mostly used to validate font data.
LOAD_BITMAP_METRICS_ONLYLoad glyph metrics without allocating and loading the bitmap data.

Did you find this page useful? Please give it a rating: