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...
 

Member Function Documentation

static void InfiniText.Fonts.Clear ( )
inlinestatic

Clears all fonts.

static FontFamily InfiniText.Fonts.Get ( string  name)
inlinestatic

Tries to get a font family by name.

Returns
Null if the family isn't loaded.
static FontFamily InfiniText.Fonts.GetOrCreate ( string  name)
inlinestatic

Gets or creates a font family by name.

static void InfiniText.Fonts.InvertNormals ( )
inlinestatic

Globally inverts the normals of font glyphs. Can be used to make letters more/less bold.

static FontFace InfiniText.Fonts.Load ( byte[]  data)
inlinestatic

Wrapper function for loading a font from the given data. Note that loaded fonts are cached once loaded.

static void InfiniText.Fonts.SetExtrude ( bool  active)
inlinestatic

Globally enables/ disables SDF extrusion. Active by default. In rare cases can cause fonts to go streaky or over-bold.

static void InfiniText.Fonts.Start ( )
inlinestatic

Sets up InfiniText. Called automatically when the first font is loaded.

static void InfiniText.Fonts.UpdateAliasValues ( )
inlinestaticprivate

Updates the bottom/ top alias values. Used by Aliasing and outlineLocation.

Member Data Documentation

Dictionary<string,FontFamily> InfiniText.Fonts.All
static

All available font families.

bool InfiniText.Fonts.DeferLoad =true
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).

bool InfiniText.Fonts.DisableExtrude =false
static

See SetExtrude. Not disabled by default.

int InfiniText.Fonts.GlyphID =1
static

A globally unique glyph ID. Used when placing glyphs on atlases.

bool InfiniText.Fonts.InvertedNormals =false
static

See InvertNormals.

bool InfiniText.Fonts.Preload =false
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.

Scanner InfiniText.Fonts.Rasteriser
static

The main rasteriser used for drawing fonts. Sets itself up as an SDF rasteriser by default.

float InfiniText.Fonts.RawAliasing =0.3f
staticprivate

The current text aliasing value. Use Aliasing.

float InfiniText.Fonts.RawOutlineLocation =0.5f
static

The SDF outline location. 0-1. See OutlineLocation.

float InfiniText.Fonts.SdfPixelHeight =40f
static

Change PixelHeight instead. The SDF draw height.

bool InfiniText.Fonts.UseOS2Metrics =false
static

Should InfiniText use the OS/2 metrics? This generally implies "like Windows/IE" layout. "Like Firefox" is the default (false, HHEA metrics).

Property Documentation

float InfiniText.Fonts.Aliasing
staticgetset

The current SDF text aliasing value. 0 to 0.5.

float InfiniText.Fonts.OutlineLocation
staticgetset

The location in the SDF "blur" of global outlines. 0-1. 0.5 is the default.

float InfiniText.Fonts.PixelHeight
staticgetset

The SDF draw height. Default is 32.