Interface IFontFamily
Assembly: Ritchie.Toolbox.dll
Syntax
public interface IFontFamily
Methods
Draw(GeometryHelper, Vector2, Color, string, int?, FontWeight, bool)
Declaration
void Draw(GeometryHelper geometry, Vector2 position, Color color, string text, int? fontSize = null, FontWeight weight = FontWeight.Normal, bool preferItalic = false)
Parameters
Draw(GeometryHelper, Vector2, Color, Rune, int?, FontWeight, bool)
Declaration
void Draw(GeometryHelper geometry, Vector2 position, Color color, Rune rune, int? fontSize = null, FontWeight weight = FontWeight.Normal, bool preferItalic = false)
Parameters
GetFont(FontWeight, bool)
Declaration
Font GetFont(FontWeight weight, bool italic)
Parameters
Returns
GetLineHeight(int?, FontWeight, bool)
Declaration
int GetLineHeight(int? fontSizePixels = null, FontWeight weight = FontWeight.Normal, bool preferItalic = false)
Parameters
Returns
GetUnderlineOffset(int?, FontWeight, bool)
Declaration
float GetUnderlineOffset(int? fontSize = null, FontWeight weight = FontWeight.Normal, bool preferItalic = false)
Parameters
Returns
Measure(string, int?, FontWeight, bool)
Declaration
Point Measure(string text, int? fontSize = null, FontWeight weight = FontWeight.Normal, bool preferItalic = false)
Parameters
Returns