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

#include <Font.h>

Public Member Functions

 Font ()
 
 Font (System::String ^path, int height, float scale)
 
void Release ()
 
SharpKmyMath::Vector2 measureString (cli::array< byte > ^text)
 
Texture getTexture ()
 

Static Public Member Functions

static Font newSystemFont (cli::array< byte > ^faceName, u32 height, bool bold)
 
static Font newSystemFont (cli::array< byte > ^faceName, u32 height)
 
static Font newSystemFontGdi (cli::array< byte > ^faceName, u32 height)
 

Public Attributes

kmyGfx::Font * obj = nullptr
 

Constructor & Destructor Documentation

◆ Font() [1/2]

SharpKmyGfx::Font::Font ( )

◆ Font() [2/2]

SharpKmyGfx::Font::Font ( System::String ^  path,
int  height,
float  scale 
)

Member Function Documentation

◆ getTexture()

Texture SharpKmyGfx::Font::getTexture ( )

◆ measureString()

SharpKmyMath::Vector2 SharpKmyGfx::Font::measureString ( cli::array< byte > ^  text)

◆ newSystemFont() [1/2]

Font SharpKmyGfx::Font::newSystemFont ( cli::array< byte > ^  faceName,
u32  height 
)
static

◆ newSystemFont() [2/2]

Font SharpKmyGfx::Font::newSystemFont ( cli::array< byte > ^  faceName,
u32  height,
bool  bold 
)
static

◆ newSystemFontGdi()

Font SharpKmyGfx::Font::newSystemFontGdi ( cli::array< byte > ^  faceName,
u32  height 
)
static

◆ Release()

void SharpKmyGfx::Font::Release ( )

Member Data Documentation

◆ obj

kmyGfx::Font* SharpKmyGfx::Font::obj = nullptr