Torque2D Reference
Loading...
Searching...
No Matches
AndroidFont Class Reference

#include <AndroidFont.h>

Inheritance diagram for AndroidFont:

Public Member Functions

 AndroidFont ()
virtual ~AndroidFont ()
virtual bool create (const char *name, U32 size, U32 charset=TGE_ANSI_CHARSET)
 Look up the requested font, cache style, layout, colorspace, and some metrics.
virtual bool isValidChar (const UTF16 character) const
 Determine if the character requested is a drawable character, or if it should be ignored.
virtual bool isValidChar (const UTF8 *str) const
virtual U32 getFontHeight () const
 Get some vertical data on the font at large. Useful for drawing multiline text, and sizing text boxes.
virtual U32 getFontBaseLine () const
virtual PlatformFont::CharInfogetCharInfo (const UTF16 character) const
virtual PlatformFont::CharInfogetCharInfo (const UTF8 *str) const
Public Member Functions inherited from PlatformFont
 PlatformFont ()
virtual ~PlatformFont ()

Additional Inherited Members

Static Public Member Functions inherited from PlatformFont
static void enumeratePlatformFonts (Vector< StringTableEntry > &fonts)

Constructor & Destructor Documentation

◆ AndroidFont()

◆ ~AndroidFont()

~AndroidFont ( )
virtual

Member Function Documentation

◆ create()

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

Look up the requested font, cache style, layout, colorspace, and some metrics.

Implements PlatformFont.

◆ getCharInfo() [1/2]

PlatformFont::CharInfo & getCharInfo ( const UTF16 character) const
virtual

Implements PlatformFont.

◆ getCharInfo() [2/2]

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

Implements PlatformFont.

◆ getFontBaseLine()

virtual U32 getFontBaseLine ( ) const
inlinevirtual

Implements PlatformFont.

◆ getFontHeight()

virtual U32 getFontHeight ( ) const
inlinevirtual

Get some vertical data on the font at large. Useful for drawing multiline text, and sizing text boxes.

Implements PlatformFont.

◆ isValidChar() [1/2]

bool isValidChar ( const UTF16 character) const
virtual

Determine if the character requested is a drawable character, or if it should be ignored.

Implements PlatformFont.

◆ isValidChar() [2/2]

bool isValidChar ( const UTF8 * str) const
virtual

Implements PlatformFont.


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