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... | |
void | SetExtrude (bool active) |
Use this to disable or enable SDF extrusion. In some rare cases, it can make fonts go streaky. Enabled by default. More... | |
void | InvertNormals () |
Use this to invert the normals of the glyphs in this face. Can be used to make letters go more/less bold. More... | |
Glyph | GetGlyph (int charcode, FontFaceFlags style) |
Gets or synthesises a glyph for the given style settings which include weight and italic. Style code 400 means regular. More... | |
FontFace | BestWeight (List< FontFace > faces, int weight, out int bestWeightDiff) |
Public Attributes | |
string | Name |
The name of this family. More... | |
FontFace | Regular |
The regular "default" font. Always set (first font to join). More... | |
bool | DisableExtrude |
True if all faces of this font should disable their extrusion. Enabled by default, but it can make some rare fonts go streaky. More... | |
List< FontFace > | Bold |
Set of all bold faces that are not italic. More... | |
List< FontFace > | Italics |
Set of all italic faces. More... | |
bool | InvertedNormals =false |
See InvertNormals. More... | |
Dictionary< FontFaceFlags, FontFace > | FontFaces =new Dictionary<FontFaceFlags,FontFace>() |
All self-declared italic fonts. More... | |
|
inline |
|
inline |
Adds the given font face to this family.
|
inline |
|
inline |
Gets or synthesises a glyph for the given style settings which include weight and italic. Style code 400 means regular.
|
inline |
Use this to invert the normals of the glyphs in this face. Can be used to make letters go more/less bold.
|
inline |
Use this to disable or enable SDF extrusion. In some rare cases, it can make fonts go streaky. Enabled by default.
List<FontFace> InfiniText.FontFamily.Bold |
Set of all bold faces that are not italic.
bool InfiniText.FontFamily.DisableExtrude |
True if all faces of this font should disable their extrusion. Enabled by default, but it can make some rare fonts go streaky.
Dictionary<FontFaceFlags,FontFace> InfiniText.FontFamily.FontFaces =new Dictionary<FontFaceFlags,FontFace>() |
All self-declared italic fonts.
bool InfiniText.FontFamily.InvertedNormals =false |
See InvertNormals.
List<FontFace> InfiniText.FontFamily.Italics |
Set of all italic faces.
string InfiniText.FontFamily.Name |
The name of this family.
FontFace InfiniText.FontFamily.Regular |
The regular "default" font. Always set (first font to join).