CRM64Pro GDK v0.11.0
A free cross-platform game development kit built on top of SDL 3.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
CRM64Pro::Font

Font Object class. More...

Inherits CRM64Pro::ObjectBase.

Public Member Functions

Sint32 info (Sint32 iMode=0)
 Request Font object information.
 
Sint32 getName (string &sName)
 Get the name.
 
Uint32 getID ()
 Get the ID.
 
Sint32 assignImage (Sint32 idImage, Sint32 iOwnership=0)
 Assign an Image to this font.
 
Sint32 getImage ()
 Get the assigned Image of this font.
 
Sint32 setCursor (Uint8 cCursor)
 Set cursor character.
 
Uint8 getCursor ()
 Get cursor character.
 
Sint32 getCursorPositionByPixel (const string &sText, Sint32 iPixelPos)
 Get the cursor position given a number of pixels.
 
Sint32 setKerning (Sint32 iKer)
 Set the kerning value.
 
Sint32 getKerning ()
 Get the kerning value.
 
Sint32 getWidth (const string &sText, Sint32 iCurPos=-1)
 Get the width of the given string (in pixels).
 
Sint32 getHeight ()
 Get the height of this font (in pixels).
 
Sint32 setPosition (Sint32 iX, Sint32 iY)
 Set the font position.
 
Sint32 getPosition (Sint32 *iX, Sint32 *iY)
 Get the font position.
 
Sint32 render (const string &sText, Sint32 iCurShow=0, Sint32 iCurPos=-1, Sint32 idRes=0)
 Render a text using this font.
 
Sint32 renderEx (const string &sText, Sint32 iCurShow=0, Sint32 iCurPos=-1, const double dAngle=0.0, const SDL_Point *poCenter=nullptr, const SDL_FlipMode rf=SDL_FLIP_NONE, Sint32 idRes=0)
 Render a text using this font.
 
Sint32 save (const string &sFileCDC)
 Save the font to a CDC file.
 
Sint32 save (Sint32 idCDC)
 Save the font to a CDC file.
 

Detailed Description

Font Object class.