# `GSFontMaster`

*Class*

## Declaration

```swift
class GSFontMaster
```

```objc
@interface GSFontMaster : NSObject
```

```python
class GSFontMaster(NSObject)
```

## Topics

### Instance Properties

- [`GSFontMaster.active`](/Core/GlyphsCore/GSFontMaster/active) — If it should be used for interpolations.
- [`GSFontMaster.axes`](/Core/GlyphsCore/GSFontMaster/axes)
- [`GSFontMaster.axesValues`](/Core/GlyphsCore/GSFontMaster/axesValues)
- [`GSFontMaster.customParameters`](/Core/GlyphsCore/GSFontMaster/customParameters) — The customParameters. A list of customParameters objects
- [`GSFontMaster.defaultAscender`](/Core/GlyphsCore/GSFontMaster/defaultAscender) — The default ascender. This is kept for compatibility, for now.
- [`GSFontMaster.defaultCapHeight`](/Core/GlyphsCore/GSFontMaster/defaultCapHeight) — The capHeight.
- [`GSFontMaster.defaultDescender`](/Core/GlyphsCore/GSFontMaster/defaultDescender)
- [`GSFontMaster.defaultItalicAngle`](/Core/GlyphsCore/GSFontMaster/defaultItalicAngle) — The Italic angle
- [`GSFontMaster.defaultXHeight`](/Core/GlyphsCore/GSFontMaster/defaultXHeight) — The xHeight.
- [`GSFontMaster.font`](/Core/GlyphsCore/GSFontMaster/font)
- [`GSFontMaster.gridMainHorizontal`](/Core/GlyphsCore/GSFontMaster/gridMainHorizontal)
- [`GSFontMaster.gridMainHorizontalFast`](/Core/GlyphsCore/GSFontMaster/gridMainHorizontalFast)
- [`GSFontMaster.gridMainHorizontalStore`](/Core/GlyphsCore/GSFontMaster/gridMainHorizontalStore)
- [`GSFontMaster.gridMainVertical`](/Core/GlyphsCore/GSFontMaster/gridMainVertical)
- [`GSFontMaster.gridMainVerticalFast`](/Core/GlyphsCore/GSFontMaster/gridMainVerticalFast)
- [`GSFontMaster.gridMainVerticalStore`](/Core/GlyphsCore/GSFontMaster/gridMainVerticalStore)
- [`GSFontMaster.gridSlopeRise`](/Core/GlyphsCore/GSFontMaster/gridSlopeRise)
- [`GSFontMaster.gridSlopeRiseStore`](/Core/GlyphsCore/GSFontMaster/gridSlopeRiseStore)
- [`GSFontMaster.gridSlopeRun`](/Core/GlyphsCore/GSFontMaster/gridSlopeRun)
- [`GSFontMaster.gridSlopeRunStore`](/Core/GlyphsCore/GSFontMaster/gridSlopeRunStore)
- [`GSFontMaster.gridSubDivisionHorizontal`](/Core/GlyphsCore/GSFontMaster/gridSubDivisionHorizontal)
- [`GSFontMaster.gridSubDivisionHorizontalStore`](/Core/GlyphsCore/GSFontMaster/gridSubDivisionHorizontalStore)
- [`GSFontMaster.gridSubDivisionVertical`](/Core/GlyphsCore/GSFontMaster/gridSubDivisionVertical)
- [`GSFontMaster.gridSubDivisionVerticalStore`](/Core/GlyphsCore/GSFontMaster/gridSubDivisionVerticalStore)
- [`GSFontMaster.guides`](/Core/GlyphsCore/GSFontMaster/guides) — The guides.
- [`GSFontMaster.icon`](/Core/GlyphsCore/GSFontMaster/icon)
- [`GSFontMaster.iconName`](/Core/GlyphsCore/GSFontMaster/iconName)
- [`GSFontMaster.id`](/Core/GlyphsCore/GSFontMaster/id) — The id
- [`GSFontMaster.hidden`](/Core/GlyphsCore/GSFontMaster/hidden) — this is for hiding it from profiles
- [`GSFontMaster.visible`](/Core/GlyphsCore/GSFontMaster/visible)
- [`GSFontMaster.listFontColor`](/Core/GlyphsCore/GSFontMaster/listFontColor)
- [`GSFontMaster.metricValues`](/Core/GlyphsCore/GSFontMaster/metricValues)
- [`GSFontMaster.name`](/Core/GlyphsCore/GSFontMaster/name) — the name of the FontMaster e.g; “Regular”, “Condensed”, …
- [`GSFontMaster.nameCoordinates`](/Core/GlyphsCore/GSFontMaster/nameCoordinates)
- [`GSFontMaster.nameUI`](/Core/GlyphsCore/GSFontMaster/nameUI)
- [`GSFontMaster.numberValues`](/Core/GlyphsCore/GSFontMaster/numberValues)
- [`GSFontMaster.properties`](/Core/GlyphsCore/GSFontMaster/properties) — The properties. this contains (localizable) names and other font info settings
- [`GSFontMaster.readBuffer`](/Core/GlyphsCore/GSFontMaster/readBuffer)
- [`GSFontMaster.stemValues`](/Core/GlyphsCore/GSFontMaster/stemValues)
- [`GSFontMaster.tempData`](/Core/GlyphsCore/GSFontMaster/tempData) — a  dictionary that stores data. It will not be written to disk.
- [`GSFontMaster.userData`](/Core/GlyphsCore/GSFontMaster/userData)

### Instance Methods

- [`GSFontMaster addCustomParameter:`](/Core/GlyphsCore/GSFontMaster/addCustomParameter:)
- [`GSFontMaster addDefaultMetrics`](/Core/GlyphsCore/GSFontMaster/addDefaultMetrics)
- [`GSFontMaster addGuide:`](/Core/GlyphsCore/GSFontMaster/addGuide:) — Adds the guide
- [`GSFontMaster addProperty:`](/Core/GlyphsCore/GSFontMaster/addProperty:) — Adds the property
- [`GSFontMaster alignPointToGrid:type:`](/Core/GlyphsCore/GSFontMaster/alignPointToGrid:type:)
- [`GSFontMaster alignmentZonesForLayer:`](/Core/GlyphsCore/GSFontMaster/alignmentZonesForLayer:)
- [`GSFontMaster ascenderForLayer:`](/Core/GlyphsCore/GSFontMaster/ascenderForLayer:)
- [`GSFontMaster axesValuesList`](/Core/GlyphsCore/GSFontMaster/axesValuesList) — The memory of the returned pointer must be freed by the caller.
- [`GSFontMaster axisExternalValueValueForId:`](/Core/GlyphsCore/GSFontMaster/axisExternalValueValueForId:) — Returns `0` if no value exists for the given id.
- [`GSFontMaster axisInternalValueValueForId:`](/Core/GlyphsCore/GSFontMaster/axisInternalValueValueForId:) — Returns `0` if no value exists for the given id.
- [`GSFontMaster axisValueForId:`](/Core/GlyphsCore/GSFontMaster/axisValueForId:)
- [`GSFontMaster axisValueValueForId:`](/Core/GlyphsCore/GSFontMaster/axisValueValueForId:)
- [`GSFontMaster blueValuesError:`](/Core/GlyphsCore/GSFontMaster/blueValuesError:)
- [`GSFontMaster blueValuesMetrics:doFallback:error:`](/Core/GlyphsCore/GSFontMaster/blueValuesMetrics:doFallback:error:)
- [`GSFontMaster countOfCustomParameters`](/Core/GlyphsCore/GSFontMaster/countOfCustomParameters) — The count of customParameters
- [`GSFontMaster countOfGuides`](/Core/GlyphsCore/GSFontMaster/countOfGuides) — The number of guides
- [`GSFontMaster countOfProperties`](/Core/GlyphsCore/GSFontMaster/countOfProperties) — The number of properties
- [`GSFontMaster countOfTempData`](/Core/GlyphsCore/GSFontMaster/countOfTempData)
- [`GSFontMaster customBoolValueForKey:`](/Core/GlyphsCore/GSFontMaster/customBoolValueForKey:)
- [`GSFontMaster customColorValueForKey:`](/Core/GlyphsCore/GSFontMaster/customColorValueForKey:)
- [`GSFontMaster customParameterForKey:`](/Core/GlyphsCore/GSFontMaster/customParameterForKey:) — The customParameters where name == Key
- [`GSFontMaster customParameterActiveForKey:`](/Core/GlyphsCore/GSFontMaster/customParameterActiveForKey:)
- [`GSFontMaster customValueForKey:`](/Core/GlyphsCore/GSFontMaster/customValueForKey:) — The value of the customParameters where name == Key
- [`GSFontMaster defaultIconName`](/Core/GlyphsCore/GSFontMaster/defaultIconName)
- [`GSFontMaster defaultMetricForType:`](/Core/GlyphsCore/GSFontMaster/defaultMetricForType:)
- [`GSFontMaster defaultMetricValueForType:`](/Core/GlyphsCore/GSFontMaster/defaultMetricValueForType:)
- [`GSFontMaster defaultMetrics`](/Core/GlyphsCore/GSFontMaster/defaultMetrics)
- [`GSFontMaster defaultPropertyForName:`](/Core/GlyphsCore/GSFontMaster/defaultPropertyForName:)
- [`GSFontMaster defaultStems`](/Core/GlyphsCore/GSFontMaster/defaultStems)
- [`GSFontMaster descenderForLayer:`](/Core/GlyphsCore/GSFontMaster/descenderForLayer:)
- [`GSFontMaster disableUpdateInterface`](/Core/GlyphsCore/GSFontMaster/disableUpdateInterface) — Delays redrawing and updates.
- [`GSFontMaster enableFutureUpdates`](/Core/GlyphsCore/GSFontMaster/enableFutureUpdates)
- [`GSFontMaster enableUpdateInterface`](/Core/GlyphsCore/GSFontMaster/enableUpdateInterface) — Reenables redrawing and updates.
- [`GSFontMaster gridLengthHorizontal`](/Core/GlyphsCore/GSFontMaster/gridLengthHorizontal)
- [`GSFontMaster gridLengthVertical`](/Core/GlyphsCore/GSFontMaster/gridLengthVertical)
- [`GSFontMaster indexOfObjectInGuides:`](/Core/GlyphsCore/GSFontMaster/indexOfObjectInGuides:) — Returns the index of guide in guides
- [`GSFontMaster indexOfObjectInProperties:`](/Core/GlyphsCore/GSFontMaster/indexOfObjectInProperties:) — Returns the index of property in properties
- [`GSFontMaster initWithDict:format:`](/Core/GlyphsCore/GSFontMaster/initWithDict:format:) — Inits with a dict.
- [`GSFontMaster initFast`](/Core/GlyphsCore/GSFontMaster/initFast)
- [`GSFontMaster initWithGlyphsParser:format:`](/Core/GlyphsCore/GSFontMaster/initWithGlyphsParser:format:)
- [`GSFontMaster insertObject:inCustomParametersAtIndex:`](/Core/GlyphsCore/GSFontMaster/insertObject:inCustomParametersAtIndex:)
- [`GSFontMaster insertObject:inGuidesAtIndex:`](/Core/GlyphsCore/GSFontMaster/insertObject:inGuidesAtIndex:) — Inserts the guide at index into guides
- [`GSFontMaster insertObject:inPropertiesAtIndex:`](/Core/GlyphsCore/GSFontMaster/insertObject:inPropertiesAtIndex:) — Inserts the property at index into properties
- [`GSFontMaster invalidateCustomParameterCache`](/Core/GlyphsCore/GSFontMaster/invalidateCustomParameterCache)
- [`GSFontMaster isOnMetricsLine:layer:`](/Core/GlyphsCore/GSFontMaster/isOnMetricsLine:layer:)
- [`GSFontMaster isUpdateInterfaceEnabled`](/Core/GlyphsCore/GSFontMaster/isUpdateInterfaceEnabled) — Check if the updating is enabled
- [`GSFontMaster italicAngleForLayer:`](/Core/GlyphsCore/GSFontMaster/italicAngleForLayer:)
- [`GSFontMaster legacyNames:weight:width:custom:`](/Core/GlyphsCore/GSFontMaster/legacyNames:weight:width:custom:) — splits the name into values that can be stored in v1 files
- [`GSFontMaster loadReadBuffer`](/Core/GlyphsCore/GSFontMaster/loadReadBuffer)
- [`GSFontMaster localizedCustomValueForKey:layer:`](/Core/GlyphsCore/GSFontMaster/localizedCustomValueForKey:layer:)
- [`GSFontMaster localizedCustomValueForKey:script:`](/Core/GlyphsCore/GSFontMaster/localizedCustomValueForKey:script:)
- [`GSFontMaster metricForType:layer:`](/Core/GlyphsCore/GSFontMaster/metricForType:layer:)
- [`GSFontMaster metricForType:script:`](/Core/GlyphsCore/GSFontMaster/metricForType:script:)
- [`GSFontMaster metricValueAtPosition:`](/Core/GlyphsCore/GSFontMaster/metricValueAtPosition:)
- [`GSFontMaster metricValueForType:layer:`](/Core/GlyphsCore/GSFontMaster/metricValueForType:layer:)
- [`GSFontMaster metrics`](/Core/GlyphsCore/GSFontMaster/metrics)
- [`GSFontMaster numberValueForId:`](/Core/GlyphsCore/GSFontMaster/numberValueForId:)
- [`GSFontMaster numberValueForName:`](/Core/GlyphsCore/GSFontMaster/numberValueForName:)
- [`GSFontMaster numberValueValueForId:`](/Core/GlyphsCore/GSFontMaster/numberValueValueForId:)
- [`GSFontMaster numberValueValueForName:`](/Core/GlyphsCore/GSFontMaster/numberValueValueForName:)
- [`GSFontMaster numberValueValueForToken:`](/Core/GlyphsCore/GSFontMaster/numberValueValueForToken:)
- [`GSFontMaster numberValuesArray`](/Core/GlyphsCore/GSFontMaster/numberValuesArray)
- [`GSFontMaster numbers`](/Core/GlyphsCore/GSFontMaster/numbers)
- [`GSFontMaster objectInCustomParametersAtIndex:`](/Core/GlyphsCore/GSFontMaster/objectInCustomParametersAtIndex:)
- [`GSFontMaster objectInGuidesAtIndex:`](/Core/GlyphsCore/GSFontMaster/objectInGuidesAtIndex:) — Returns object at idx in guides
- [`GSFontMaster objectInPropertiesAtIndex:`](/Core/GlyphsCore/GSFontMaster/objectInPropertiesAtIndex:) — Returns object at idx in properties
- [`GSFontMaster otherBluesError:`](/Core/GlyphsCore/GSFontMaster/otherBluesError:)
- [`GSFontMaster otherBluesMetrics:doFallback:error:`](/Core/GlyphsCore/GSFontMaster/otherBluesMetrics:doFallback:error:)
- [`GSFontMaster postRead:format:`](/Core/GlyphsCore/GSFontMaster/postRead:format:)
- [`GSFontMaster preview`](/Core/GlyphsCore/GSFontMaster/preview)
- [`GSFontMaster propertyForName:`](/Core/GlyphsCore/GSFontMaster/propertyForName:)
- [`GSFontMaster propertyListValueFormat:error:`](/Core/GlyphsCore/GSFontMaster/propertyListValueFormat:error:) — Returns the content of the object to store it in pList.
- [`GSFontMaster removeObjectFromCustomParameters:`](/Core/GlyphsCore/GSFontMaster/removeObjectFromCustomParameters:)
- [`GSFontMaster removeObjectFromGuides:`](/Core/GlyphsCore/GSFontMaster/removeObjectFromGuides:) — Removes the guide
- [`GSFontMaster removeObjectFromProperties:`](/Core/GlyphsCore/GSFontMaster/removeObjectFromProperties:) — Removes the property
- [`GSFontMaster removeObjectFromCustomParametersAtIndex:`](/Core/GlyphsCore/GSFontMaster/removeObjectFromCustomParametersAtIndex:)
- [`GSFontMaster removeObjectFromCustomParametersForKey:`](/Core/GlyphsCore/GSFontMaster/removeObjectFromCustomParametersForKey:) — Removes the first parameter with then Name
- [`GSFontMaster removeObjectFromGuidesAtIndex:`](/Core/GlyphsCore/GSFontMaster/removeObjectFromGuidesAtIndex:) — Removes the guide at idx
- [`GSFontMaster removeObjectFromPropertiesAtIndex:`](/Core/GlyphsCore/GSFontMaster/removeObjectFromPropertiesAtIndex:) — Removes the property at idx
- [`GSFontMaster removeUserDataForKey:`](/Core/GlyphsCore/GSFontMaster/removeUserDataForKey:) — Removed the object with this key.
- [`GSFontMaster replaceObjectInCustomParametersAtIndex:withObject:`](/Core/GlyphsCore/GSFontMaster/replaceObjectInCustomParametersAtIndex:withObject:)
- [`GSFontMaster roundingSettings`](/Core/GlyphsCore/GSFontMaster/roundingSettings)
- [`GSFontMaster roundingSettingsMax:`](/Core/GlyphsCore/GSFontMaster/roundingSettingsMax:)
- [`GSFontMaster saveToFile:format:context:error:`](/Core/GlyphsCore/GSFontMaster/saveToFile:format:context:error:)
- [`GSFontMaster scaleBy:`](/Core/GlyphsCore/GSFontMaster/scaleBy:)
- [`GSFontMaster setAxisExternalValueValue:forId:`](/Core/GlyphsCore/GSFontMaster/setAxisExternalValueValue:forId:)
- [`GSFontMaster setAxisInternalValueValue:forId:`](/Core/GlyphsCore/GSFontMaster/setAxisInternalValueValue:forId:)
- [`GSFontMaster setAxisValue:forId:`](/Core/GlyphsCore/GSFontMaster/setAxisValue:forId:)
- [`GSFontMaster setAxisValueValue:forId:`](/Core/GlyphsCore/GSFontMaster/setAxisValueValue:forId:)
- [`GSFontMaster setCustomValue:forKey:`](/Core/GlyphsCore/GSFontMaster/setCustomValue:forKey:) — Set the value for key
- [`GSFontMaster setDefaultMetric:forType:`](/Core/GlyphsCore/GSFontMaster/setDefaultMetric:forType:)
- [`GSFontMaster setDefaultMetric:overshoot:forType:`](/Core/GlyphsCore/GSFontMaster/setDefaultMetric:overshoot:forType:)
- [`GSFontMaster setDefaultProperty:value:`](/Core/GlyphsCore/GSFontMaster/setDefaultProperty:value:)
- [`GSFontMaster setMetricPosition:overshoot:type:name:filter:`](/Core/GlyphsCore/GSFontMaster/setMetricPosition:overshoot:type:name:filter:)
- [`GSFontMaster setMetricValue:forId:`](/Core/GlyphsCore/GSFontMaster/setMetricValue:forId:)
- [`GSFontMaster setMetricValue:forId:notify:`](/Core/GlyphsCore/GSFontMaster/setMetricValue:forId:notify:)
- [`GSFontMaster setNumberValue:forId:`](/Core/GlyphsCore/GSFontMaster/setNumberValue:forId:)
- [`GSFontMaster setNumberValue:forName:`](/Core/GlyphsCore/GSFontMaster/setNumberValue:forName:)
- [`GSFontMaster setNumberValueValue:forId:`](/Core/GlyphsCore/GSFontMaster/setNumberValueValue:forId:)
- [`GSFontMaster setNumberValueValue:forName:`](/Core/GlyphsCore/GSFontMaster/setNumberValueValue:forName:)
- [`GSFontMaster setProperty:value:languageTag:`](/Core/GlyphsCore/GSFontMaster/setProperty:value:languageTag:) — Adds a new font info value to the array specified by `key` or updates an existing one.
- [`GSFontMaster setReadBuffer:forKey:`](/Core/GlyphsCore/GSFontMaster/setReadBuffer:forKey:)
- [`GSFontMaster setStemValue:forId:`](/Core/GlyphsCore/GSFontMaster/setStemValue:forId:)
- [`GSFontMaster setStemValueValue:forId:`](/Core/GlyphsCore/GSFontMaster/setStemValueValue:forId:)
- [`GSFontMaster setTempData:forKey:`](/Core/GlyphsCore/GSFontMaster/setTempData:forKey:) — Adds key/value to tempData. Pass nil as value to remove previous set data
- [`GSFontMaster setUserData:forKey:`](/Core/GlyphsCore/GSFontMaster/setUserData:forKey:) — Adds something to the fonts userData.
- [`GSFontMaster slantHeightForLayer:`](/Core/GlyphsCore/GSFontMaster/slantHeightForLayer:)
- [`GSFontMaster stemValuesArray`](/Core/GlyphsCore/GSFontMaster/stemValuesArray)
- [`GSFontMaster stems`](/Core/GlyphsCore/GSFontMaster/stems)
- [`GSFontMaster stopUpdateInterface`](/Core/GlyphsCore/GSFontMaster/stopUpdateInterface) — Disable redrawing and updates completely.
- [`GSFontMaster tempDataForKey:`](/Core/GlyphsCore/GSFontMaster/tempDataForKey:) — return value for key in tempData
- [`GSFontMaster topHeightForLayer:`](/Core/GlyphsCore/GSFontMaster/topHeightForLayer:)
- [`GSFontMaster ttStems`](/Core/GlyphsCore/GSFontMaster/ttStems) — convenient for TT export
- [`GSFontMaster userDataForKey:`](/Core/GlyphsCore/GSFontMaster/userDataForKey:) — convenience accessor to get to the content of the userData dict
- [`GSFontMaster valueForMetric:`](/Core/GlyphsCore/GSFontMaster/valueForMetric:)
- [`GSFontMaster valueForNumber:`](/Core/GlyphsCore/GSFontMaster/valueForNumber:)
- [`GSFontMaster valueForStem:`](/Core/GlyphsCore/GSFontMaster/valueForStem:)
- [`GSFontMaster valueValueForStemId:`](/Core/GlyphsCore/GSFontMaster/valueValueForStemId:)
- [`GSFontMaster xHeightForLayer:`](/Core/GlyphsCore/GSFontMaster/xHeightForLayer:)

### Type Methods

- [`GSFontMaster alignPoint:toGrid:type:`](/Core/GlyphsCore/GSFontMaster/alignPoint:toGrid:type:)
- [`GSFontMaster iconNames`](/Core/GlyphsCore/GSFontMaster/iconNames)
- [`GSFontMaster isOnMetrics:metrics:italicAngle:inLayer:`](/Core/GlyphsCore/GSFontMaster/isOnMetrics:metrics:italicAngle:inLayer:)
- [`GSFontMaster localizedParameter:glyph:`](/Core/GlyphsCore/GSFontMaster/localizedParameter:glyph:)
- [`GSFontMaster localizedParameterValue:glyph:`](/Core/GlyphsCore/GSFontMaster/localizedParameterValue:glyph:)

## Relationships

### Inherits From

- `NSObject`

### Conforms To

- [`GSContainerProtocol`](/Core/GlyphsCore/GSContainerProtocol)
- [`GSParametersAndPropertiesProtocol`](/Core/GlyphsCore/GSParametersAndPropertiesProtocol)
- [`GSUserDataProtocol`](/Core/GlyphsCore/GSUserDataProtocol)
- `NSCoding`
- `NSCopying`

## See Also

### Essentials

- [`GSFont`](/Core/GlyphsCore/GSFont) — The top-level model object of a Glyphs document.
- [`GSGlyph`](/Core/GlyphsCore/GSGlyph) — A named glyph and its layer collection in a font.
- [`GSLayer`](/Core/GlyphsCore/GSLayer) — The drawing and editing representation of a glyph.
- [`GSAxis`](/Core/GlyphsCore/GSAxis) — `GSAxis` represents an axis in a `GSFont` object.
- [`GSInstance`](/Core/GlyphsCore/GSInstance)

