GSFontMaster Class Reference
| Inherits from | NSObject |
| Conforms to | GSContainerProtocol NSCoding NSCopying |
Tasks
Properties
-
nameproperty -
widthproperty -
weightproperty -
customproperty -
weightValueproperty -
widthValueproperty -
customValueproperty -
idproperty -
descenderproperty -
ascenderproperty -
capHeightproperty -
xHeightproperty -
italicAngleproperty -
verticalStemsproperty -
horizontalStemsproperty -
alignmentZonesproperty -
guideLinesproperty -
userDataproperty
Initializing an Font Master
Guides
Alignment Zones
Other Methods
Properties
customValue
The custom value
@property (assign, nonatomic) CGFloat customValueDiscussion
The custom value defines the place of the Fontmaster in the “design space”
horizontalStems
list of horizontal stems
@property (strong, nonatomic) NSArray<NSNumber*> *horizontalStemsname
the name of the FontMaster e.g; “Regular”, “Condensed”, …
@property (nonatomic, strong) NSString *nameuserData
Place for plugins to store data .
@property (strong, nonatomic) NSMutableDictionary *userDataDiscussion
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*> *verticalStemsweight
The weight tag
@property (copy, nonatomic) NSString *weightDiscussion
Something like Light or Regular
weightValue
The weight value
@property (assign, nonatomic) CGFloat weightValueDiscussion
The weight value defines the place of the Fontmaster in the “design space”
width
The width tag
@property (copy, nonatomic) NSString *widthDiscussion
Something like Condensed or Extended
Instance Methods
addAlignmentZone:
adds an alignment zone
- (void)addAlignmentZone:(GSAlignmentZone *)AlignmentZoneParameters
- AlignmentZone
a GSAlignmentZone object
alignmentZoneAtIndex:
Returns the alignment zone located at Index.
- (GSAlignmentZone *)alignmentZoneAtIndex:(NSUInteger)IndexParameters
- Index
An index within the bounds of the array.
Return Value
The object located at index.
countOfAlignmentZones
Number of alignment zones
- (NSUInteger)countOfAlignmentZonesReturn Value
Number of alignment zones
guideLineAtIndex:
Returns the Guide Line located at Index.
- (id)guideLineAtIndex:(NSUInteger)theIndexParameters
- theIndex
An index within the bounds of the array.
Return Value
The Guide Line located at index.
guideLineCount
Number of Guide Lines
- (NSUInteger)guideLineCountReturn Value
Number of Guide Lines