Logo
Public Member Functions | Static Public Member Functions | List of all members
SharpKmyGfx.Font Class Reference

Public Member Functions

 Font (string path, int height, float scale, int boldWeight)
 
IntPtr getNativeFontPtr ()
 
void Release ()
 
SharpKmyMath.Vector2 measureString (byte[] text)
 
Texture getTexture ()
 
void setLeadingOffset (float pos, float line)
 
bool isAvailable ()
 

Static Public Member Functions

static Font newSystemFont (byte[] faceName, UInt32 height, bool bold)
 
static Font newSystemFont (byte[] faceName, UInt32 height, float scale, int boldWeight)
 
static Font newSystemFontGdi (byte[] faceName, UInt32 height, float scale)
 

Constructor & Destructor Documentation

◆ Font()

SharpKmyGfx.Font.Font ( string  path,
int  height,
float  scale,
int  boldWeight 
)

Member Function Documentation

◆ getNativeFontPtr()

IntPtr SharpKmyGfx.Font.getNativeFontPtr ( )

◆ getTexture()

Texture SharpKmyGfx.Font.getTexture ( )

◆ isAvailable()

bool SharpKmyGfx.Font.isAvailable ( )

◆ measureString()

SharpKmyMath.Vector2 SharpKmyGfx.Font.measureString ( byte[]  text)

◆ newSystemFont() [1/2]

static Font SharpKmyGfx.Font.newSystemFont ( byte[]  faceName,
UInt32  height,
bool  bold 
)
static

◆ newSystemFont() [2/2]

static Font SharpKmyGfx.Font.newSystemFont ( byte[]  faceName,
UInt32  height,
float  scale,
int  boldWeight 
)
static

◆ newSystemFontGdi()

static Font SharpKmyGfx.Font.newSystemFontGdi ( byte[]  faceName,
UInt32  height,
float  scale 
)
static

◆ Release()

void SharpKmyGfx.Font.Release ( )

◆ setLeadingOffset()

void SharpKmyGfx.Font.setLeadingOffset ( float  pos,
float  line 
)