MacCarbFont

Engine/source/platformMac/macCarbFont.h

More...

Private Attributes

CGColorSpaceRef
ATSUTextLayout
ATSUStyle

Public Functions

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

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

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

bool

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

bool

Detailed Description

Private Attributes

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

Public Functions

MacCarbFont()

~MacCarbFont()

create(const char * name, U32 size, U32 charset)

Reimplemented from: PlatformFont

getCharInfo(const UTF16 ch)

Reimplemented from: PlatformFont

getCharInfo(const UTF8 * str)

Reimplemented from: PlatformFont

getFontBaseLine()

Reimplemented from: PlatformFont

getFontHeight()

Reimplemented from: PlatformFont

isValidChar(const UTF16 ch)

Reimplemented from: PlatformFont

isValidChar(const UTF8 * str)

Reimplemented from: PlatformFont