Inherits from NSObject
Conforms to GSContainerProtocol
NSCoding
NSCopying

Overview

The class defining the fontmaster object

Properties

alignmentZones

list of alignment zones

@property (strong, nonatomic) NSArray *alignmentZones

ascender

The ascender.

@property (nonatomic) CGFloat ascender

capHeight

The capHeight.

@property (nonatomic) CGFloat capHeight

custom

A custom tag

@property (copy, nonatomic) NSString *custom

customValue

The custom value

@property (assign, nonatomic) CGFloat customValue

Discussion

The custom value defines the place of the Fontmaster in the “design space”

descender

The descender.

@property (nonatomic) CGFloat descender

guideLines

list of guidelines

@property (strong, nonatomic) NSArray *guideLines

horizontalStems

list of horizontal stems

@property (strong, nonatomic) NSArray<NSNumber*> *horizontalStems

id

The id

@property (copy, nonatomic) NSString *id

italicAngle

The Italic angle

@property (nonatomic) CGFloat italicAngle

name

the name of the FontMaster e.g; “Regular”, “Condensed”, …

@property (nonatomic, strong) NSString *name

userData

Place for plugins to store data .

@property (strong, nonatomic) NSMutableDictionary *userData

Discussion

Here it is possible to store something. Please use a unique key. The objects should be able to serialize to a plist. if they are not they should return all infos to store to save as string in description.

verticalStems

list of vertical stems

@property (strong, nonatomic) NSArray<NSNumber*> *verticalStems

weight

The weight tag

@property (copy, nonatomic) NSString *weight

Discussion

Something like Light or Regular

weightValue

The weight value

@property (assign, nonatomic) CGFloat weightValue

Discussion

The weight value defines the place of the Fontmaster in the “design space”

width

The width tag

@property (copy, nonatomic) NSString *width

Discussion

Something like Condensed or Extended

widthValue

The width value

@property (assign, nonatomic) CGFloat widthValue

Discussion

The width value defines the place of the Fontmaster in the “design space”

xHeight

The xHeight.

@property (nonatomic) CGFloat xHeight

Instance Methods

addAlignmentZone:

adds an alignment zone

- (void)addAlignmentZone:(GSAlignmentZone *)AlignmentZone

Parameters

AlignmentZone

a GSAlignmentZone object

alignmentZoneAtIndex:

Returns the alignment zone located at Index.

- (GSAlignmentZone *)alignmentZoneAtIndex:(NSUInteger)Index

Parameters

Index

An index within the bounds of the array.

Return Value

The object located at index.

countOfAlignmentZones

Number of alignment zones

- (NSUInteger)countOfAlignmentZones

Return Value

Number of alignment zones

customParameters

//// customParameters ///////

- (NSArray *)customParameters

fontMasterDict

Returns the Font Master to save it in plist

- (NSDictionary *)fontMasterDict

guideLineAtIndex:

Returns the Guide Line located at Index.

- (id)guideLineAtIndex:(NSUInteger)theIndex

Parameters

theIndex

An index within the bounds of the array.

Return Value

The Guide Line located at index.

guideLineCount

Number of Guide Lines

- (NSUInteger)guideLineCount

Return Value

Number of Guide Lines

initWithFontMasterDict:

Inits with a Dict loaded from pList.

- (instancetype)initWithFontMasterDict:(NSDictionary *)FontMasterDict

scaleBy:

Scales the Font Master Scales the vertical metrics, alignment zones and guide lines

- (void)scaleBy:(CGFloat)Scale

Parameters

Scale

the scale factor (1 means no scaling.)