Detailed Description

Represents a font suitable for displaying text on the screen with. There is one of these per document. It's that way because each document can potentially name a font-family something different (via -face).

Public Member Functions

 DynamicFont (string name)
 Creates a new displayable font. More...
 
bool LoadFaces ()
 Loads this font from the local project files. Should be a folder named after the font family and in it a series of font files. More...
 

Static Public Member Functions

static DynamicFont Get (string name)
 Creates a new font by loading the font from resources. More...
 
static DynamicFont GetDefaultFamily ()
 

Public Attributes

string Name
 The font family name. E.g. "Vera". More...
 
FontFamily Family
 The underlying InfiniText font family. More...
 

Static Public Attributes

static DynamicFont DefaultFamily
 The default font family. This is just the very first loaded family, or the internal font. More...
 
static string InternalFont ="DejaVu"
 The font that will attempt to load entirely if no other font is available. Absolute last resort. More...
 

Properties

bool Loaded [get]
 True if this font is ready to go. More...
 

Constructor & Destructor Documentation

PowerUI.DynamicFont.DynamicFont ( string  name)
inline

Creates a new displayable font.

Parameters
nameThe name of the font.

Member Function Documentation

static DynamicFont PowerUI.DynamicFont.Get ( string  name)
inlinestatic

Creates a new font by loading the font from resources.

Parameters
nameThe name of the font to load.
Returns
A new dynamic font.
static DynamicFont PowerUI.DynamicFont.GetDefaultFamily ( )
inlinestatic
bool PowerUI.DynamicFont.LoadFaces ( )
inline

Loads this font from the local project files. Should be a folder named after the font family and in it a series of font files.

Returns
True if at least one font face was loaded.

Member Data Documentation

DynamicFont PowerUI.DynamicFont.DefaultFamily
static

The default font family. This is just the very first loaded family, or the internal font.

FontFamily PowerUI.DynamicFont.Family

The underlying InfiniText font family.

string PowerUI.DynamicFont.InternalFont ="DejaVu"
static

The font that will attempt to load entirely if no other font is available. Absolute last resort.

string PowerUI.DynamicFont.Name

The font family name. E.g. "Vera".

Property Documentation

bool PowerUI.DynamicFont.Loaded
get

True if this font is ready to go.