Logo
公開メンバ関数 | 静的公開メンバ関数 | 全メンバ一覧
SharpKmyGfx.Font クラス

公開メンバ関数

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

静的公開メンバ関数

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

構築子と解体子

◆ Font()

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

メソッド詳解

◆ getNativeFontPtr()

IntPtr SharpKmyGfx.Font.getNativeFontPtr ( )

◆ getTexture()

Texture SharpKmyGfx.Font.getTexture ( )

◆ isAvailable()

bool SharpKmyGfx.Font.isAvailable ( )

◆ measureString()

SharpKmyMath.Vector2 SharpKmyGfx.Font.measureString ( string  text)

◆ newSystemFont() [1/2]

static Font SharpKmyGfx.Font.newSystemFont ( string  faceName,
UInt32  height,
bool  bold 
)
static

◆ newSystemFont() [2/2]

static Font SharpKmyGfx.Font.newSystemFont ( string  faceName,
UInt32  height,
float  scale,
int  boldWeight 
)
static

◆ newSystemFontGdi()

static Font SharpKmyGfx.Font.newSystemFontGdi ( string  faceName,
UInt32  height,
float  scale 
)
static

◆ Release()

void SharpKmyGfx.Font.Release ( )

◆ setLeadingOffset()

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