InfiniText.FontFamily Class Reference

Detailed Description

A font family is a collection of font faces (Font objects). A font family is e.g. Arial, and it's faces are e.g. bold and italic variants.

Public Member Functions

 FontFamily (string name)
 
void Add (FontFace font)
 Adds the given font face to this family. More...
 
Glyph GetNotDefined (int styleCode)
 Gets the .notdef glyph from this family. Tries to get it in the given style; uses regular if not found. More...
 
Glyph GetGlyph (int charcode, int styleCode)
 Gets or synthesises a glyph for the given style settings which include weight and italic. Style code 400 means regular. More...
 
Glyph GetGlyph (int charcode, int styleCode, out bool firstTime)
 Gets or synthesises a glyph for the given style settings which include weight and italic. Style code 400 means regular. More...
 
Glyph GetGlyph (int charcode, int styleCode, int synthFlags)
 Gets or synthesises a glyph for the given style settings which include weight and italic. Style code 400 means regular. More...
 
FontFace GetFace (int styleCode, int synthFlags)
 Gets or creates the most suitable font face for the given style. More...
 
Glyph GetGlyph (int charcode, int styleCode, int synthFlags, out bool firstTime)
 Gets or synthesises a glyph for the given style settings which include weight and italic. Style code 400 means regular. More...
 

Public Attributes

string Name
 The name of this family. More...
 
FontFace Regular
 The regular "default" font. Always set (first font to join by default, overridden if a better face occurs). More...
 
bool InvertedNormals =false
 See InvertNormals. More...
 
List< FontFaceFontFaces =new List<FontFace>()
 All font faces in this family More...
 

Constructor & Destructor Documentation

InfiniText.FontFamily.FontFamily ( string  name)
inline

Member Function Documentation

void InfiniText.FontFamily.Add ( FontFace  font)
inline

Adds the given font face to this family.

FontFace InfiniText.FontFamily.GetFace ( int  styleCode,
int  synthFlags 
)
inline

Gets or creates the most suitable font face for the given style.

Glyph InfiniText.FontFamily.GetGlyph ( int  charcode,
int  styleCode 
)
inline

Gets or synthesises a glyph for the given style settings which include weight and italic. Style code 400 means regular.

Glyph InfiniText.FontFamily.GetGlyph ( int  charcode,
int  styleCode,
out bool  firstTime 
)
inline

Gets or synthesises a glyph for the given style settings which include weight and italic. Style code 400 means regular.

Parameters
firstTimeTrue if this glyph was seen for the first time.
Glyph InfiniText.FontFamily.GetGlyph ( int  charcode,
int  styleCode,
int  synthFlags 
)
inline

Gets or synthesises a glyph for the given style settings which include weight and italic. Style code 400 means regular.

Glyph InfiniText.FontFamily.GetGlyph ( int  charcode,
int  styleCode,
int  synthFlags,
out bool  firstTime 
)
inline

Gets or synthesises a glyph for the given style settings which include weight and italic. Style code 400 means regular.

Parameters
firstTimeTrue if this glyph was seen for the first time.
Glyph InfiniText.FontFamily.GetNotDefined ( int  styleCode)
inline

Gets the .notdef glyph from this family. Tries to get it in the given style; uses regular if not found.

Member Data Documentation

List<FontFace> InfiniText.FontFamily.FontFaces =new List<FontFace>()

All font faces in this family

bool InfiniText.FontFamily.InvertedNormals =false

See InvertNormals.

string InfiniText.FontFamily.Name

The name of this family.

FontFace InfiniText.FontFamily.Regular

The regular "default" font. Always set (first font to join by default, overridden if a better face occurs).