C# Class EmptyKeys.UserInterface.Media.FontBase

Implements abstract multi-render font
Mostrar archivo Open project: EmptyKeys/UI_Engines Class Usage Examples

Public Methods

Method Description
FontBase ( object nativeFont ) : System.Text

Initializes a new instance of the FontBase 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

FontBase() public method

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

GetNativeFont() public abstract method

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

MeasureString() public abstract method

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

MeasureString() public abstract method

Measures the string.
public abstract 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