Class
GSFontMaster
Declaration
class GSFontMasterDeclaration
@interface GSFontMaster : NSObjectDeclaration
class GSFontMaster(NSObject)Topics
Initializers
Inits with a dict.
Instance Properties
If it should be used for interpolations.
The customParameters. A list of customParameters objects
The default ascender. This is kept for compatibility, for now.
The capHeight.
The Italic angle
The xHeight.
The guides.
The id
this is for hiding it from profiles
the name of the FontMaster e.g; “Regular”, “Condensed”, …
The properties. this contains (localizable) names and other font info settings
a dictionary that stores data. It will not be written to disk.
Instance Methods
Adds the guide
Adds the property
The memory of the returned pointer must be freed by the caller.
Returns
0if no value exists for the given id.Returns
0if no value exists for the given id.The count of customParameters
The number of guides
The number of properties
The customParameters where name == Key
The value of the customParameters where name == Key
Delays redrawing and updates.
Reenables redrawing and updates.
Returns the index of guide in guides
Returns the index of property in properties
Inserts the guide at index into guides
Inserts the property at index into properties
Check if the updating is enabled
splits the name into values that can be stored in v1 files
Returns object at idx in guides
Returns object at idx in properties
Returns the content of the object to store it in pList.
Removes the guide
Removes the property
Removes the first parameter with then Name
Removes the guide at idx
Removes the property at idx
Removed the object with this key.
Set the value for key
Adds a new font info value to the array specified by
keyor updates an existing one.Adds key/value to tempData. Pass nil as value to remove previous set data
Adds something to the fonts userData.
Disable redrawing and updates completely.
return value for key in tempData
convenient for TT export
convenience accessor to get to the content of the userData dict
Type Methods
Topics
Instance Properties
If it should be used for interpolations.
The customParameters. A list of customParameters objects
The default ascender. This is kept for compatibility, for now.
The capHeight.
The Italic angle
The xHeight.
The guides.
The id
this is for hiding it from profiles
the name of the FontMaster e.g; “Regular”, “Condensed”, …
The properties. this contains (localizable) names and other font info settings
a dictionary that stores data. It will not be written to disk.
Instance Methods
Adds the guide
Adds the property
The memory of the returned pointer must be freed by the caller.
Returns
0if no value exists for the given id.Returns
0if no value exists for the given id.The count of customParameters
The number of guides
The number of properties
The customParameters where name == Key
The value of the customParameters where name == Key
Delays redrawing and updates.
Reenables redrawing and updates.
Returns the index of guide in guides
Returns the index of property in properties
Inits with a dict.
Inserts the guide at index into guides
Inserts the property at index into properties
Check if the updating is enabled
splits the name into values that can be stored in v1 files
Returns object at idx in guides
Returns object at idx in properties
Returns the content of the object to store it in pList.
Removes the guide
Removes the property
Removes the first parameter with then Name
Removes the guide at idx
Removes the property at idx
Removed the object with this key.
Set the value for key
Adds a new font info value to the array specified by
keyor updates an existing one.Adds key/value to tempData. Pass nil as value to remove previous set data
Adds something to the fonts userData.
Disable redrawing and updates completely.
return value for key in tempData
convenient for TT export
convenience accessor to get to the content of the userData dict
Type Methods
Relationships
Inherits From
NSObject
Conforms To
NSCodingNSCopying- GSContainerProtocol
- GSParametersAndPropertiesProtocol
- GSUserDataProtocol
ObjectiveC.NSObjectProtocolSwift.CVarArgSwift.CustomDebugStringConvertibleSwift.CustomStringConvertibleSwift.EquatableSwift.Hashable
Relationships
Inherits From
NSObject
Conforms To
See Also
Essentials
The top-level model object of a Glyphs document.
A named glyph and its layer collection in a font.
The drawing and editing representation of a glyph.
GSAxisrepresents an axis in aGSFontobject.