torque Torque Game Engine Documentation
TGE Version 1.5.2

MacCarbFont Class Reference

#include <macCarbFont.h>

Inheritance diagram for MacCarbFont:

Inheritance graph
[legend]

Public Member Functions

 MacCarbFont ()
virtual ~MacCarbFont ()
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 ch) 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 ch) const
virtual PlatformFont::CharInfogetCharInfo (const UTF8 *str) const

Private Attributes

ATSUStyle mStyle
ATSUTextLayout mLayout
CGColorSpaceRef mColorSpace
U32 mHeight
U32 mBaseline
U32 mSize
StringTableEntry mName

Constructor & Destructor Documentation

MacCarbFont::MacCarbFont (  ) 

virtual MacCarbFont::~MacCarbFont (  )  [virtual]


Member Function Documentation

virtual bool MacCarbFont::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.

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

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

Implements PlatformFont.

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

Implements PlatformFont.

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

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

Implements PlatformFont.

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

Implements PlatformFont.

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

Implements PlatformFont.

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

Implements PlatformFont.


Field Documentation

ATSUStyle MacCarbFont::mStyle [private]

ATSUTextLayout MacCarbFont::mLayout [private]

CGColorSpaceRef MacCarbFont::mColorSpace [private]




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen