Inherits from NSObject
Declared in WebFont.h

Overview

The class representing a font.

Tasks

Properties

family

Provides access to the font family which is the official font name.

@property (nonatomic, retain) NSString *family

Declared In

WebFont.h

isBoldWeight

Whether or not the font weight is bold.

@property (nonatomic) BOOL isBoldWeight

Declared In

WebFont.h

isItalicStyle

Whether or not the font style is italic.

@property (nonatomic) BOOL isItalicStyle

Declared In

WebFont.h

isNormalStyle

Whether or not the font style is normal.

@property (nonatomic) BOOL isNormalStyle

Declared In

WebFont.h

isNormalWeight

Whether or not the font weight is normal.

@property (nonatomic) BOOL isNormalWeight

Declared In

WebFont.h

isSemiboldWeight

Whether or not the font weight is semibold.

@property (nonatomic) BOOL isSemiboldWeight

Declared In

WebFont.h

isSizeNotSet

Whether or not the font size is not set.

@property (nonatomic, readonly) BOOL isSizeNotSet

Return Value

YES if the font size is not set, NO otherwise.

Declared In

WebFont.h

size

Provides access to the font size.

@property (nonatomic) CGFloat size

Declared In

WebFont.h

Class Methods

defaultBoldFont

Returns the default bold font.

+ (WebFont *)defaultBoldFont

Return Value

The default bold font.

Declared In

WebFont.h

defaultFont

Returns the default text font.

+ (WebFont *)defaultFont

Return Value

The default font.

Declared In

WebFont.h

fontWithName:

Returns the font by name.

+ (WebFont *)fontWithName:(NSString *)name

Parameters

name

The web font name.

Return Value

The web font.

Declared In

WebFont.h

tableRowFont

Returns table row font.

+ (WebFont *)tableRowFont

Return Value

The table row font.

Declared In

WebFont.h

Instance Methods

font

Returns underlying font object.

- (UIFont *)font

Return Value

The font

Declared In

WebFont.h

updateWithDict:inherits:

Tells the font to update its parameters from dictionary.

- (BOOL)updateWithDict:(NSDictionary *)fontDict inherits:(WebFont *)inheritedFont

Parameters

fontDict

The dictionary to update from.

inheritedFont

The font to inherit parameters from.

Return Value

YES if the update operation succeeded, NO otherwise.

Declared In

WebFont.h