Inherits from NSObject
Declared in CC3BitmapLabelNode.h

Overview

Extends CC3BitmapFontConfiguration to support Cocos3D functionality.

Properties

atlasName

The name of the font atlas texture.

@property (nonatomic, retain, readonly) NSString *atlasName

Declared In

CC3BitmapLabelNode.h

baseline

Returns the character baseline.

@property (nonatomic, readonly) NSUInteger baseline

Declared In

CC3BitmapLabelNode.h

commonHeight

Returns the height of the characters in pixels in the texture atlas.

@property (nonatomic, readonly) NSInteger commonHeight

Declared In

CC3BitmapLabelNode.h

fontSize

Returns the nominal font size.

@property (nonatomic, readonly) GLfloat fontSize

Declared In

CC3BitmapLabelNode.h

padding

Returns the padding for the font.

@property (nonatomic, readonly) CC3BitmapFontPadding padding

Declared In

CC3BitmapLabelNode.h

textureSize

Returns the size of the texture in pixels.

@property (nonatomic, readonly) CGSize textureSize

Declared In

CC3BitmapLabelNode.h

Class Methods

clearFontConfigurations

Clears all cached font configurations to conserve memory.

+ (void)clearFontConfigurations

Declared In

CC3BitmapLabelNode.h

configurationFromFontFile:

Allocates and initializes an autoreleased instance from the specified bitmap font definition file.

+ (id)configurationFromFontFile:(NSString *)fontFile

Discussion

This implementation maintains a cache so that each file is only loaded once.

Declared In

CC3BitmapLabelNode.h

Instance Methods

characterSpecFor:

Returns a pointer to the specification of the specified character.

- (CC3BitmapCharDef *)characterSpecFor:(unichar)c

Declared In

CC3BitmapLabelNode.h

initFromFontFile:

Initializes this instance from the specified bitmap font definition file.

- (id)initFromFontFile:(NSString *)fontFile

Declared In

CC3BitmapLabelNode.h

kerningBetween:and:

Returns the amount of kerning required when the specified second character follows the first character in a line of text.

- (NSInteger)kerningBetween:(unichar)firstChar and:(unichar)secondChar

Declared In

CC3BitmapLabelNode.h