WinFont Class Reference

#include <winFont.h>

Inheritance diagram for WinFont:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 WinFont ()
virtual ~WinFont ()
virtual bool isValidChar (const UTF16 ch) const
 Is the specified character valid for rendering?
virtual bool isValidChar (const UTF8 *str) const
virtual U32 getFontHeight () const
virtual U32 getFontBaseLine () const
virtual PlatformFont::CharInfogetCharInfo (const UTF16 ch) const
virtual PlatformFont::CharInfogetCharInfo (const UTF8 *str) const
virtual bool create (const char *name, dsize_t size, U32 charset=TGE_ANSI_CHARSET)
 This is just for createPlatformFont to call.

Private Attributes

HFONT mFont
TEXTMETRIC mTextMetric

Constructor & Destructor Documentation

WinFont::WinFont (  ) 

virtual WinFont::~WinFont (  )  [virtual]


Member Function Documentation

virtual bool WinFont::isValidChar ( const UTF16  ch  )  const [virtual]

Is the specified character valid for rendering?

Implements PlatformFont.

virtual bool WinFont::isValidChar ( const UTF8 str  )  const [virtual]

Implements PlatformFont.

virtual U32 WinFont::getFontHeight (  )  const [inline, virtual]

Implements PlatformFont.

virtual U32 WinFont::getFontBaseLine (  )  const [inline, virtual]

Implements PlatformFont.

virtual PlatformFont::CharInfo& WinFont::getCharInfo ( const UTF16  ch  )  const [virtual]

Implements PlatformFont.

virtual PlatformFont::CharInfo& WinFont::getCharInfo ( const UTF8 str  )  const [virtual]

Implements PlatformFont.

virtual bool WinFont::create ( const char *  name,
dsize_t  size,
U32  charset = TGE_ANSI_CHARSET 
) [virtual]

This is just for createPlatformFont to call.

Implements PlatformFont.


Member Data Documentation

HFONT WinFont::mFont [private]

TEXTMETRIC WinFont::mTextMetric [private]