GSFontMaster Class Reference
Inherits from | NSObject |
Conforms to | GSContainerProtocol NSCoding NSCopying |
Tasks
Properties
-
name
property -
width
property -
weight
property -
custom
property -
weightValue
property -
widthValue
property -
customValue
property -
id
property -
descender
property -
ascender
property -
capHeight
property -
xHeight
property -
italicAngle
property -
verticalStems
property -
horizontalStems
property -
alignmentZones
property -
guideLines
property -
userData
property
Initializing an Font Master
Guides
Alignment Zones
Other Methods
Properties
customValue
The custom value
@property (assign, nonatomic) CGFloat customValue
Discussion
The custom value defines the place of the Fontmaster in the “design space”
horizontalStems
list of horizontal stems
@property (strong, nonatomic) NSArray<NSNumber*> *horizontalStems
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
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
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