C# Class EmptyKeys.UserInterface.Media.FNAFont

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

Public Methods

Method Description
FNAFont ( object nativeFont ) : System

Initializes a new instance of the FNAFont class.

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.

Method Details

FNAFont() public method

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

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