OSXFont

Engine/source/platformMac/macFont.h

More...

Private Attributes

CGColorSpaceRef
CTFontRef

Public Functions

bool
create(const char * name, dsize_t 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
isValidChar(const UTF16 character)

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

bool

Detailed Description

Private Attributes

U32 mBaseline 
CGColorSpaceRef mColorSpace 
CTFontRef mFontRef 
U32 mHeight 

Public Functions

OSXFont()

~OSXFont()

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

Reimplemented from: PlatformFont

getCharInfo(const UTF16 character)

Reimplemented from: PlatformFont

getCharInfo(const UTF8 * str)

Reimplemented from: PlatformFont

getFontBaseLine()

Reimplemented from: PlatformFont

getFontHeight()

Reimplemented from: PlatformFont

isValidChar(const UTF16 character)

Reimplemented from: PlatformFont

isValidChar(const UTF8 * str)

Reimplemented from: PlatformFont