C# Class EmptyKeys.UserInterface.Media.MonoGameFont

Implements MonoGame specific font
Inheritance: FontBase
Exibir arquivo Open project: EmptyKeys/UI_Engines

Public Methods

Method Description
GetNativeFont ( ) : object

Gets the native font.

MeasureString ( StringBuilder text, float dpiScaleX, float dpiScaleY ) : Size

Measures the string.

MeasureString ( string text, float dpiScaleX, float dpiScaleY ) : Size

Measures the string.

MonoGameFont ( object nativeFont ) : System

Initializes a new instance of the MonoGameFont class.

Method Details

GetNativeFont() public method

Gets the native font.
public GetNativeFont ( ) : object
return object

MeasureString() public method

Measures the string.
public MeasureString ( StringBuilder text, float dpiScaleX, float dpiScaleY ) : Size
text StringBuilder The text.
dpiScaleX float The dpi scale x.
dpiScaleY float The dpi scale y.
return Size

MeasureString() public method

Measures the string.
public MeasureString ( string text, float dpiScaleX, float dpiScaleY ) : Size
text string The text.
dpiScaleX float The dpi scale x.
dpiScaleY float The dpi scale y.
return Size

MonoGameFont() public method

Initializes a new instance of the MonoGameFont class.
public MonoGameFont ( object nativeFont ) : System
nativeFont object The native font.
return System