Torque2D Reference
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | List of all members
PlatformFont Class Referenceabstract

#include <platformFont.h>

+ Inheritance diagram for PlatformFont:

Classes

struct  CharInfo
 

Public Member Functions

 PlatformFont ()
 
virtual ~PlatformFont ()
 
virtual bool isValidChar (const UTF16 ch) const =0
 
virtual bool isValidChar (const UTF8 *str) const =0
 
virtual U32 getFontHeight () const =0
 
virtual U32 getFontBaseLine () const =0
 
virtual PlatformFont::CharInfogetCharInfo (const UTF16 ch) const =0
 
virtual PlatformFont::CharInfogetCharInfo (const UTF8 *str) const =0
 
virtual bool create (const char *name, U32 size, U32 charset=TGE_ANSI_CHARSET)=0
 

Static Public Member Functions

static void enumeratePlatformFonts (Vector< StringTableEntry > &fonts)
 

Constructor & Destructor Documentation

◆ PlatformFont()

PlatformFont ( )
inline

◆ ~PlatformFont()

virtual ~PlatformFont ( )
inlinevirtual

Member Function Documentation

◆ create()

virtual bool create ( const char *  name,
U32  size,
U32  charset = TGE_ANSI_CHARSET 
)
pure virtual

Implemented in AndroidFont, and EmscriptenFont.

◆ enumeratePlatformFonts()

void enumeratePlatformFonts ( Vector< StringTableEntry > &  fonts)
static

◆ getCharInfo() [1/2]

virtual PlatformFont::CharInfo & getCharInfo ( const UTF16  ch) const
pure virtual

Implemented in AndroidFont, and EmscriptenFont.

◆ getCharInfo() [2/2]

virtual PlatformFont::CharInfo & getCharInfo ( const UTF8 *  str) const
pure virtual

Implemented in AndroidFont, and EmscriptenFont.

◆ getFontBaseLine()

virtual U32 getFontBaseLine ( ) const
pure virtual

Implemented in AndroidFont, and EmscriptenFont.

◆ getFontHeight()

virtual U32 getFontHeight ( ) const
pure virtual

Implemented in AndroidFont, and EmscriptenFont.

◆ isValidChar() [1/2]

virtual bool isValidChar ( const UTF16  ch) const
pure virtual

Implemented in AndroidFont, and EmscriptenFont.

◆ isValidChar() [2/2]

virtual bool isValidChar ( const UTF8 *  str) const
pure virtual

Implemented in AndroidFont, and EmscriptenFont.


The documentation for this class was generated from the following files: