Static Public Member Functions | |
static FontFace | Load (byte[] data) |
Wrapper function for loading a font from the given data. Note that loaded fonts are cached once loaded. More... | |
static void | SetExtrude (bool active) |
Globally enables/ disables SDF extrusion. Active by default. In rare cases can cause fonts to go streaky or over-bold. More... | |
static void | InvertNormals () |
Globally inverts the normals of font glyphs. Can be used to make letters more/less bold. More... | |
static void | Clear () |
Clears all fonts. More... | |
static void | Start () |
Sets up InfiniText. Called automatically when the first font is loaded. More... | |
static FontFamily | GetOrCreate (string name) |
Gets or creates a font family by name. More... | |
static FontFamily | Get (string name) |
Tries to get a font family by name. More... | |
Static Public Attributes | |
static bool | UseOS2Metrics =false |
Should InfiniText use the OS/2 metrics? This generally implies "like Windows/IE" layout. "Like Firefox" is the default (false, HHEA metrics). More... | |
static int | GlyphID =1 |
A globally unique glyph ID. Used when placing glyphs on atlases. More... | |
static Scanner | Rasteriser |
The main rasteriser used for drawing fonts. Sets itself up as an SDF rasteriser by default. More... | |
static bool | Preload =false |
Should font glyphs be loaded when the font is? If yes, font loading takes slightly longer (especially if you use large fonts) but you'll instead have the entire font loaded which can be useful. More... | |
static bool | DeferLoad =true |
Should font faces be entirely deferred? If yes, font faces are loaded up only when they are first used (at which point preloading may also occur). More... | |
static bool | InvertedNormals =false |
See InvertNormals. More... | |
static bool | DisableExtrude =false |
See SetExtrude. Not disabled by default. More... | |
static float | SdfPixelHeight =40f |
Change PixelHeight instead. The SDF draw height. More... | |
static float | RawOutlineLocation =0.5f |
The SDF outline location. 0-1. See OutlineLocation. More... | |
static Dictionary< string, FontFamily > | All |
All available font families. More... | |
Properties | |
static float | Aliasing [get, set] |
The current SDF text aliasing value. 0 to 0.5. More... | |
static float | OutlineLocation [get, set] |
The location in the SDF "blur" of global outlines. 0-1. 0.5 is the default. More... | |
static float | PixelHeight [get, set] |
The SDF draw height. Default is 32. More... | |
Static Private Member Functions | |
static void | UpdateAliasValues () |
Updates the bottom/ top alias values. Used by Aliasing and outlineLocation. More... | |
Static Private Attributes | |
static float | RawAliasing =0.3f |
The current text aliasing value. Use Aliasing. More... | |
|
inlinestatic |
Clears all fonts.
|
inlinestatic |
Tries to get a font family by name.
|
inlinestatic |
Gets or creates a font family by name.
|
inlinestatic |
Globally inverts the normals of font glyphs. Can be used to make letters more/less bold.
|
inlinestatic |
Wrapper function for loading a font from the given data. Note that loaded fonts are cached once loaded.
|
inlinestatic |
Globally enables/ disables SDF extrusion. Active by default. In rare cases can cause fonts to go streaky or over-bold.
|
inlinestatic |
Sets up InfiniText. Called automatically when the first font is loaded.
|
inlinestaticprivate |
Updates the bottom/ top alias values. Used by Aliasing and outlineLocation.
|
static |
All available font families.
|
static |
Should font faces be entirely deferred? If yes, font faces are loaded up only when they are first used (at which point preloading may also occur).
|
static |
See SetExtrude. Not disabled by default.
|
static |
A globally unique glyph ID. Used when placing glyphs on atlases.
|
static |
See InvertNormals.
|
static |
Should font glyphs be loaded when the font is? If yes, font loading takes slightly longer (especially if you use large fonts) but you'll instead have the entire font loaded which can be useful.
|
static |
The main rasteriser used for drawing fonts. Sets itself up as an SDF rasteriser by default.
|
staticprivate |
The current text aliasing value. Use Aliasing.
|
static |
The SDF outline location. 0-1. See OutlineLocation.
|
static |
Change PixelHeight instead. The SDF draw height.
|
static |
Should InfiniText use the OS/2 metrics? This generally implies "like Windows/IE" layout. "Like Firefox" is the default (false, HHEA metrics).
|
staticgetset |
The current SDF text aliasing value. 0 to 0.5.
|
staticgetset |
The location in the SDF "blur" of global outlines. 0-1. 0.5 is the default.
|
staticgetset |
The SDF draw height. Default is 32.