# Glyphs File Format, Version 3 ## File Format Flavors There are two flavors of the Glyphs file format. ### Single File (.glyphs) A single file which contains all the data of a font source. ### Package (.glyphspackage) The package format contains the same data as the single file format, but split into multiple files. This format uses a bundle structure, where a directory ending in `.glyphspackage` is presented by macOS as a regular file. Step inside such a bundle by choosing “Show Package Contents” from the context menu in Finder. Inside this directory, there are the following files: - `fontinfo.plist` – The main file containing the font data. - `order.plist` – A file containing the glyph names in their order. An array of strings. - `UIState.plist` – A file containing the display strings. A dictionary with a `displayStrings` key following the [`displayStrings` schema](#spec-glyphs-3-displayStrings). - `glyphs/*.glyph` – Individual files for each glyph. The files follow the [`glyph` schema](#spec-glyphs-3-glyph). Glyphs saves its source files in a plain-text format. This way, files can be viewed and edited in any text editor. ## File Format Details - The file format is based on OpenStep Property Lists (also known as NeXTSTEP, ASCII, or old-style Property Lists). - This format can be converted to JSON for validation against a JSON Schema. - The file contents are UTF-8 encoded. - In addition to the four core data types (dictionary, array, string, and data), Glyphs uses unquoted strings to represent numbers (integers, floats, and booleans). Booleans are encoded as `1` (true) and `0` (false). Strings that look like numbers are always encoded in quotes. - Whitespace is restricted to ASCII spaces, line feeds, and horizontal tabs. - No comments (like `// ...` or `/* .... */`) are present. - Indentation, while allowed, is generally omitted to reduce file size. - Dictionaries and arrays are generally broken onto lines such that each key or element starts on a new line. When empty, they span two lines, one for the opening and one for the closing bracket. - Some arrays are encoded on a single line for better readability and to reduce file size. These are mostly arrays used as tuples like points with X/Y coordinates. The `glyphsCompact` attribute in the JSON Schema indicates that the array is encoded on a single line. - Dictionary keys are sorted alphabetically. - Some string values do not escape horizontal tab and line feed characters, instead using the literal characters. This improves readability. - Several values cannot be edited in isolation, as they are dependent on one another. For example, changing the ID of a master requires updating the matching associated master ID of layers. - Empty dictionaries and arrays are generally omitted, except for values of a `userData` property where the structure is preserved. ## Syntax The following Backus–Naur form describes the syntax of the Glyphs file format. ```xml ::= ; ::= ( ' ' | '\t' | '\n' )*; ::= | | | | ; ::= '{' ( )* '}'; ::= '=' ';'; ::= '(' [ ] ')'; ::= [ ',' ] | ',' ; ::= | ; ::= '"' ( '\' | )* '"'; ::= '\' | 'a' | 'b' | 'e' | 'f' | 'n' | 'r' | 't' | 'v' | '\n' | [ [ ] ] | 'U' ; ::= '0'-'7'; ::= '0'-'9' | 'A'-'F' | 'a'-'f'; ::= { any character except '"' and '\' }; ::= ( )*; ::= '$' | '+' | '.' | '/' | ':' | 'A'-'Z' | '_' | 'a'-'z'; ::= | '-' | '0'-'9'; ::= [ '-' ] ( '0'-'9' )+ [ '.' ( '0'-'9' )+ ]; ::= '<' [ ] '>'; ::= [ ]*; ::= ; ``` ## Schema Use the following JSON schemas to validate files. - [glyphs-3.schema.json](https://github.com/schriftgestalt/GlyphsSDK/blob/Glyphs3/GlyphsFileFormat/Schemas/glyphs-3.schema.json) - [glyphs-autosave-3.schema.json](https://github.com/schriftgestalt/GlyphsSDK/blob/Glyphs3/GlyphsFileFormat/Schemas/glyphs-autosave-3.schema.json) - [fontinfo-3.schema.json](https://github.com/schriftgestalt/GlyphsSDK/blob/Glyphs3/GlyphsFileFormat/Schemas/fontinfo-3.schema.json) - [fontinfo-autosave-3.schema.json](https://github.com/schriftgestalt/GlyphsSDK/blob/Glyphs3/GlyphsFileFormat/Schemas/fontinfo-autosave-3.schema.json) ## Document - .appVersion: string required – The build number of Glyphs used to save the file. Example: `"4012"`. - .formatVersion: integer = 3 required new – The version of the file format. If unset, the file is considered to be version 1 as used by Glyphs 1 and Glyphs 2. - DisplayStrings: array = [] – The strings of the Edit View tabs. Omitted when the `Write DisplayStrings` custom parameter is set to false. Omitted and written as `displayStrings` to `UIState.plist` in case of a package file. See [`displayStrings`](#spec-glyphs-3-displayStrings). - axes: array = [] new – The designspace variation axes of the font. See [`axis`](#spec-glyphs-3-axis) for items. - classes: array = [] – The OpenType layout classes of the font. See [`class`](#spec-glyphs-3-class) for items. - customParameters: array = [] – The custom parameters of the font. See [`customParameter`](#spec-glyphs-3-customParameter) for items. - date: string – The moment in time that is used as the creation date of exported font files including date, time, and timezone. Example: `"2026-07-17 03:14:15 +0000"`. - familyName: string – The font family name. Corresponds to the default value of the `familyNames` property. - featurePrefixes: array = [] – The OpenType layout feature prefixes of the font. See [`featurePrefix`](#spec-glyphs-3-featurePrefix) for items. - features: array = [] – The OpenType layout features of the font. See [`feature`](#spec-glyphs-3-feature) for items. - fontMaster: array required – The masters of the font. Min count: 1. See [`fontMaster`](#spec-glyphs-3-fontMaster) for items. - glyphs: array required – The glyphs of the font. The order is used on export unless the `glyphOrder` custom parameter is set. See [`glyph`](#spec-glyphs-3-glyph) for items. - instances: array = [] – The instances of the font. See [`instance`](#spec-glyphs-3-instance) for items. - kerningLTR: object = {} new – The left-to-right kerning of the font. See [`kerning`](#spec-glyphs-3-kerning). - kerningRTL: object = {} new – The right-to-left kerning of the font. See [`kerning`](#spec-glyphs-3-kerning). - kerningVertical: object = {} new – The vertical kerning of the font. See [`kerning`](#spec-glyphs-3-kerning). - metrics: array = [] new – The font’s metric definitions. Each master stores the corresponding values in `metricValues`. See [`metric`](#spec-glyphs-3-metric) for items. - note: string new – The note about the font. - numbers: array = [] new – The font’s named number definitions. Each master stores the corresponding values in `numberValues`. See [`metricNumber`](#spec-glyphs-3-metricNumber) for items. - properties: array = [] new – The properties of the font. See [`infoProperty`](#spec-glyphs-3-infoProperty) for items. - settings: object = {} new - disablesAutomaticAlignment: boolean = false – Whether automatic alignment of components is disabled. - disablesNiceNames: boolean = false – Whether to use production names instead of nice names. - gridLength: integer = 1 (`u32`) – The main grid length. - gridSubDivision: integer = 1 (`u32`) – The grid sub-division size. - keepAlternatesTogether: boolean = false – Whether to keep alternates glyphs together in Font View. - keyboardIncrement: number = 1 (`f32`) – The standard keyboard increment. - keyboardIncrementBig: number = 10 (`f32`) – The keyboard increment when holding the Shift key. - keyboardIncrementHuge: number = 100 (`f32`) – The keyboard increment when holding both the Shift and Command key. - previewRemoveOverlap: boolean = false – Whether to preview the effect of the Remove Overlaps filter in Edit View. - snapToObjects: boolean = false – Whether snapping is enabled in Edit View. - fontType: string = "default" – The type of the font. - Possible values: `"default"`, `"variable"`, `"layerFont"`, `"iconSet"`. - stems: array = [] new – The font’s stem definitions. Each master stores the corresponding widths in `stemValues`. See [`metricStem`](#spec-glyphs-3-metricStem) for items. - unitsPerEm: integer (`u32`) required – The number of coordinate units on the em square. - userData: object = {} – Custom data associated with the font. See [`userData`](#spec-glyphs-3-userData). - versionMajor: integer (`u32`) required – The major version number of the font. - versionMinor: integer (`u32`) required – The minor version number of the font. ## Definitions - anchor: object – (`GSAnchor`) - attr: object = {} new – The attributes of the anchor. Starting in version 4, this also holds the user data; before that, `userData` is a key of its own. See [`attr`](#spec-glyphs-3-attr). - locked: boolean = false new – Whether the anchor is locked. - name: string required – The name of the anchor. - orientation: string = "left" new – The orientation of the anchor. See [`orientation`](#spec-glyphs-3-orientation). - Possible values: `"left"`, `"center"`, `"right"`. - pos: array = [0, 0] new – The position of the anchor. See [`pos`](#spec-glyphs-3-pos). - userData: object = {} new – Custom data associated with the anchor. See [`userData`](#spec-glyphs-3-userData). - annotation: object – (`GSAnnotation`) - angle: number = 0 (`f64`) – The angle of the annotation in degrees clockwise. - pos: array = [0, 0] new – The position of the annotation. See [`pos`](#spec-glyphs-3-pos). - text: string = "" – The text of a text-type annotation. - type: string required – The type of the annotation. - Possible values: `"Text"`, `"Arrow"`, `"Circle"`, `"Plus"`, `"Minus"`. - width: number = 0 (`f64`) – The width of a text- or circle-type annotation. - attr: object - axis: object – (`GSAxis`) - default: number = 0 (`f64`) – The default location on the axis. - hidden: boolean = false – Whether the axis is considered to be hidden from the font user. - name: string = "" – The user-facing name of the axis. - tag: string = "" – The OpenType tag of the axis. Must be unique within the font. The tag may be longer than four characters in which case only the first four characters are considered to be the canonical tag of the axis and the rest is used as a differentiating identifier. On export, the canonical tag is used. Multiple axes with the same canonical tag are useful for higher-order interpolation. - class: object – (`GSClass`) - automatic: boolean = false – Whether the code of the class is generated automatically. - code: string = "" – The code of the class. Note that this code may not just be a whitespace-separated list of glyph names but may also contain comments and other feature code constructs. Examples: `"A B C"`, `"noon-ar noon-ar.fina noon-ar.medi noon-ar.init # noon-ar glyphs"`. - disabled: boolean = false – Whether the class is disabled. - name: string required – The name of the class. The leading at sign (`@`) is not included. Examples: `"Uppercase"`, `"CombiningTopAccents"`. - notes: string = "" – A string serving as a description or comment about the class. - color One of 4 options. - Option. `array` new – A legacy color reference into the version 3 `Color Palettes` custom parameter, written with an 8-bit alpha factor. Tuple with 3 items. - #0: string = "p" – Indicates a palette color reference. - #1: integer (`u16`) – The color palette entry index. - #2: integer = 255 (`u8`) – The alpha factor applied to the referenced palette color. - Option. `array` – An RGB color with an alpha channel in the sRGB IEC61966-2.1 color space. Tuple with 4 items. - #0: integer (`u8`) – The red color component. - #1: integer (`u8`) – The green color component. - #2: integer (`u8`) – The blue color component. - #3: integer (`u8`) – The alpha color component. - Option. `array` new – A gray color with an alpha channel in a perceptual generic gray color space with γ = 2.2. Tuple with 2 items. - #0: integer (`u8`) – The gray value from `0` (black) to `255` (white). - #1: integer (`u8`) – The alpha color component. - Option. `array` new – A CMYK color with an alpha channel. The color space is device-dependent. Tuple with 5 items. - #0: integer (`u8`) – The cyan color component. - #1: integer (`u8`) – The magenta color component. - #2: integer (`u8`) – The yellow color component. - #3: integer (`u8`) – The black color component. - #4: integer (`u8`) – The alpha color component. - colorLabel One of 2 options. - Option. `integer` (`u8`) – The index of the color label. See also [the handbook entry on color labels](https://handbook.glyphsapp.com/glyph/#glyph/color-label). - Option. See [`color`](#spec-glyphs-3-color). - component: object – (`GSComponent`) - alignment: integer = 0 (`i8`) – (`GSComponentAlignment`) – Controls the automatic alignment of the component. `-1`: disabled (no alignment), `0`: default (alignment is based on context), `1`: force alignment (align regardless of context), `3`: horizontal alignment (align horizontally, but allow for manual vertical placement). One of 4 options. - Option. `-1` – Disabled: automatic positioning is disabled. - Option. `0` – Default: automatic positioning follows the normal eligibility rules. - Option. `1` – Forced: automatic positioning is enabled regardless of normal eligibility. - Option. `3` – Horizontal: only the horizontal coordinate is positioned automatically. - anchor: string – The name of the attachment anchor. Set to specify a specific anchor when there are multiple candidates. - angle: number = 0 (`f64`) new – The rotation angle of the component in degrees clockwise. - attr: object = {} new – The attributes of the component. See [`shapeAttr`](#spec-glyphs-3-shapeAttr). - keepWeight: number = 0 (`f64`) – Unused. - locked: boolean = false – Whether the component is locked. - masterId: string new – The ID of the master from which the component is derived. - orientation: integer = 0 (`i8`) new – (`GSElementOrientation`) – The orientation of the component. One of 3 options. - Option. `0` – Left: x values are relative to the left edge of the layer box. - Option. `1` – Right: x values are relative to the right edge of the layer box. - Option. `2` – Center: x values are relative to the center of the layer box. - piece: object = {} – The Smart Component settings of the component, mapping property names to values. - string One of 2 options. - Option. `number` (`f64`) - Option. `integer` - pos: array = [0, 0] new – The position (translation transform) of the component. See [`pos`](#spec-glyphs-3-pos). - ref: string required new – The name of the referenced glyph. - scale: array = [1, 1] new – The scale transform of the component. See [`scale`](#spec-glyphs-3-scale). - slant: array = [0, 0] new – The slant transform of the component. See [`slant`](#spec-glyphs-3-slant). - userData: object = {} – Custom data associated with the component. See `attr` for current format versions. See [`userData`](#spec-glyphs-3-userData). - customParameter: object – (`GSCustomParameter`) - disabled: boolean = false – Whether the custom parameter is disabled. - name: string required – The name of the custom parameter. - value required – The value of the custom parameter. - displayStrings: array - #: string - featurePrefix: object – (`GSFeaturePrefix`) - automatic: boolean = false – Whether the code of the feature prefix is generated automatically. - code: string = "" – The code of the feature prefix. Example: `"languagesystem DFLT dflt;"`. - disabled: boolean = false – Whether the feature prefix is disabled. - name: string required – The name of the feature prefix. Example: `"Languagesystems"`. - notes: string = "" – A string serving as a description or comment about the feature prefix. - feature: object – (`GSFeature`) - automatic: boolean = false – Whether the code of the feature is generated automatically. - code: string = "" required – The code of the feature. Example: `"sub a by a.alt;"`. - disabled: boolean = false – Whether the feature is disabled. - labels: array = [] new – The labels of the feature. See [`infoValue`](#spec-glyphs-3-infoValue) for items. - notes: string = "" – A string serving as a description or comment about the feature. - tag: string required new – The four-letter tag of the feature. Example: `"calt"`. - fontMaster: object – (`GSFontMaster`) - axesValues: array = [] new – The designspace location of the master. - #: number (`f64`) - customParameters: array = [] – The custom parameters of the master. See [`customParameter`](#spec-glyphs-3-customParameter) for items. - guides: array = [] new – The global guides of the master. See [`guide`](#spec-glyphs-3-guide) for items. - iconName: string = "Regular" – The name of the icon that represents the master. Generally omitted when equal to `Regular`, or equal to the default icon name of the master (`GSFontMaster.defaultIconName`). For a list of available names, consult `GSFontMaster.iconNames()`. - id: string required – The unique identifier of the master. - metricValues: array = [] new – The metric values of the master, in the same order as the font’s `metrics` array. See [`metricStore`](#spec-glyphs-3-metricStore) for items. - name: string – The name of the master. May be omitted in file format version 1 when equal to `Regular` or the default master name. - numberValues: array = [] new – The number values for this master, in the same order as the font’s `numbers` array. - #: number (`f64`) - properties: array = [] new – The properties of the master. See [`infoProperty`](#spec-glyphs-3-infoProperty) for items. - stemValues: array = [] new – The stem values for this master, in the same order as the font’s `stems` array. - #: number (`f64`) - tempData: object = {} new – Auto-save files only: Temporary data associated with the master. See [`userData`](#spec-glyphs-3-userData). - userData: object = {} – Custom data associated with the master. See [`userData`](#spec-glyphs-3-userData). - visible: boolean = true – Whether the master is visible in the preview. - glyph: object – (`GSGlyph`) - case: string new – The case of the glyph. If unset, then the case is based on a glyph data lookup based on the glyph name. - Possible values: `"noCase"`, `"upper"`, `"lower"`, `"smallCaps"`, `"minor"`, `"other"`. - category: string – The category of the glyph. If unset, then the category is based on a glyph data lookup based on the glyph name. - color – The color label of the glyph. See [`colorLabel`](#spec-glyphs-3-colorLabel). - direction: string new – The writing direction of the glyph. If unset, then the writing direction is based on a glyph data lookup based on the glyph name. - Possible values: `"BIDI"`, `"LTR"`, `"RTL"`, `"VTR"`, `"VTL"`. - export: boolean = true – Whether the glyph is exported. - glyphname: string required – The name of the glyph. - kernBottom: string new – The kerning group of the bottom side of the glyph. - kernLeft: string new – The kerning group of the left side of the glyph. - kernRight: string new – The kerning group of the right side of the glyph. - kernTop: string new – The kerning group of the top side of the glyph. - lastChange: string – The date and time of the last change of the glyph. Example: `"2023-02-25 14:46:49 +0000"`. - layers: array – The layers of the glyph. See [`layer`](#spec-glyphs-3-layer) for items. - locked: boolean = false – Whether the glyph is locked. - metricBottom: string new – The bottom metrics key of the glyph. - metricLeft: string new – The left metrics key of the glyph. - metricRight: string new – The right metrics key of the glyph. - metricTop: string new – The top metrics key of the glyph. - metricVertOrigin: string new – The vertical origin metrics key of the glyph. - metricVertWidth: string new – The vertical width metrics key of the glyph. - metricWidth: string new – The width metrics key of the glyph. - note: string = "" – A string serving as a description or comment about the glyph. - partsSettings: array = [] – A list of the Smart Glyph properties and their top/bottom values. See [`partProperty`](#spec-glyphs-3-partProperty) for items. - production: string – The production name of the glyph. If unset, then the production name is based on a glyph data lookup based on the glyph name or the Unicode code point. - script: string – The script of the glyph. If unset, then the script is based on a glyph data lookup based on the glyph name. - sortName: string new – The sort name of the glyph. If unset, then the sort name is based on a glyph data lookup based on the glyph name. - sortNameKeep: string new – The sort name of the glyph used in the *Keep Alternates Next to Base Glyph* display mode. If unset, then the sort name is based on a glyph data lookup based on the glyph name. - subCategory: string – The subcategory of the glyph. If unset, then the subcategory is based on a glyph data lookup based on the glyph name. - tags: array = [] new – The tags of the glyph, sorted lexicographically. - #: string - unicode – The Unicode code points of the glyph. One of 2 options. - Option. `integer` (`u32`) new – The code point value. Examples: `65`, `125184`, `0`. - Option. `array` new – An ascending list of code point values. Min count: 2. - #: integer (`u32`) Examples: `65`, `125184`, `0`. - userData: object = {} – Custom data associated with the glyph. See [`userData`](#spec-glyphs-3-userData). - guide: object – (`GSGuide`) - angle: number = 0 (`f64`) – The angle at which the guide is drawn in degrees clockwise. - filter: string – The filter of the guide. The syntax is the description of [NSPredicate](https://developer.apple.com/documentation/foundation/nspredicate). Omitted when no filter is defined. - grid: number = 0 (`f64`) – The grid of the guide. - length: number = 0 (`f64`) – The length of a line-type guide. - lockAngle: boolean = false – Whether the angle of the guide is locked. - locked: boolean = false – Whether the guide is locked. - name: string = "" – The name of the guide. - orientation: string = "left" new – The orientation of the guide. See [`orientation`](#spec-glyphs-3-orientation). - Possible values: `"left"`, `"center"`, `"right"`. - pos: array = [0, 0] new – The position of the guide. See [`pos`](#spec-glyphs-3-pos). - showMeasurement: boolean = false – Whether the measurement of the guide is shown. - size: array = [0, 0] new – The size of the guide. See [`size`](#spec-glyphs-3-size). - type: string = "Line" new – The type of the guide. - Possible values: `"Line"`, `"Circle"`, `"Rect"`. - userData: object = {} new – Custom data associated with the guide. See [`userData`](#spec-glyphs-3-userData). - gradient – (`GSGradient`) One of 2 options. - Option. `object` – (`GSLinearGradient`) – A linear gradient. - colors: array required new – The color stops of the gradient. See [`gradientColors`](#spec-glyphs-3-gradientColors). - end: array – The end point of the linear gradient relative to the shape bounds. See [`pos`](#spec-glyphs-3-pos). - start: array – The start point of the linear gradient relative to the shape bounds. See [`pos`](#spec-glyphs-3-pos). - Option. `object` – (`GSRadialGradient`) – A radial gradient. - colors: array required new – The color stops of the gradient. See [`gradientColors`](#spec-glyphs-3-gradientColors). - end: array – The end center of the radial gradient relative to the shape bounds. See [`pos`](#spec-glyphs-3-pos). - start: array – The start center of the radial gradient relative to the shape bounds. See [`pos`](#spec-glyphs-3-pos). - type: string = "circle" required – The radial gradient type marker. - gradientColors: array See [`gradientColorStop`](#spec-glyphs-3-gradientColorStop) for items. - gradientColorStop: array – (`GSColorStop`) Tuple with 2 items. - #0 – The color of the stop. See [`color`](#spec-glyphs-3-color). - #1: number (`f64`) – The offset of the stop. - hint: object – (`GSHint`) - horizontal: boolean = false – Whether the hint is horizontal. Not written for path components. - name: string – The name of the hint. - options: number = 0 (`u32`) – The options of the hint. - origin – The origin of the hint. See [`indexPath`](#spec-glyphs-3-indexPath). - other1 – The first other point of the hint, used by TrueType instructions that need more than two nodes. See [`indexPath`](#spec-glyphs-3-indexPath). - other2 – The second other point of the hint, used by TrueType instructions that need more than three nodes. See [`indexPath`](#spec-glyphs-3-indexPath). - place: array new Tuple with 2 items. - #0: number (`f64`) – The origin placement. - #1: number (`f64`) – The width of the hint. `21` for bottom ghost hints and flex hints, `-20` for top ghost hints. - scale: array = [1, 1] new – The scale of the hint. See [`scale`](#spec-glyphs-3-scale). - settings: object – The settings of the hint. - stem: number (`i32`) – The stem of the hint. - target One of 2 options. - Option. See [`indexPath`](#spec-glyphs-3-indexPath). - Option. `string` new – The target of a ghost hint. - Possible values: `"up"`, `"down"`. - type: string required new – The type of the hint. - Possible values: `"TopGhost"`, `"BottomGhost"`, `"Stem"`, `"Flex"`, `"TTStem"`, `"TTShift"`, `"TTSnap"`, `"TTInterpolate"`, `"TTDiagonal"`, `"TTDelta"`, `"Tag"`, `"Corner"`, `"Cap"`, `"Brush"`, `"Segment"`, `"Auto"`, `"Unknown"`. - image: object – (`GSImage`) - alpha: number = 50 (`f64`) – The alpha value of the image. - angle: number = 0 (`f64`) new – The rotation angle of the image in degrees clockwise. - crop: array new – The cropped frame of the image, specified as the crop origin X/Y and size width/height. Tuple with 4 items. - #0: number (`f64`) – The X coordinate of the crop origin. - #1: number (`f64`) – The Y coordinate of the crop origin. - #2: number (`f64`) – The width of the crop size. - #3: number (`f64`) – The height of the crop size. - imagePath: string – The file path of the image file relative to the document file. - imageURL: string – The URL bookmark data of the image file path. - locked: boolean = false – Whether the image is locked. - pos: array = [0, 0] new – The position of the image. See [`pos`](#spec-glyphs-3-pos). - scale: array = [1, 1] new – The scale factor of the image. See [`scale`](#spec-glyphs-3-scale). - slant: array = [0, 0] new – The slant factor of the image. See [`slant`](#spec-glyphs-3-slant). - instance: object – (`GSInstance`) - axesValues: array – The internal axis locations of the instance. These values are also used for the external axis locations, if no external axis locations are specified separately. - #: number (`f64`) - customParameters: array = [] – The custom parameters of the instance. See [`customParameter`](#spec-glyphs-3-customParameter) for items. - exports: boolean = true – Whether the instance is exported. - instanceInterpolations: object = {} – The interpolation factors where the keys are the master IDs. - string One of 2 options. - Option. `number` (`f64`) – The X and Y factors are the same. - Option. `array` new – The X and Y factors. Tuple with 2 items. - #0: number (`f64`) – The X factor. - #1: number (`f64`) – The Y factor. - isBold: boolean = false – Whether the instance is bold. - isItalic: boolean = false – Whether the instance is italic. - linkStyle: string – The name of the style-linked instance. - manualInterpolation: boolean = false – Whether the `instanceInterpolations` values are used. Otherwise, the values are calculated from the axis values. - name: string – The style name of the instance. Examples: `"Regular"`, `"Bold"`, `"Italic"`, `"Bold Italic"`. - properties: array = [] new See [`infoProperty`](#spec-glyphs-3-infoProperty) for items. - type: string = "single" new – The type of the instance. - Possible values: `"single"`, `"variable"`, `"static"`, `"icon"`, `"particles"`. - userData: object = {} – Custom data associated with the instance. See [`userData`](#spec-glyphs-3-userData). - visible: boolean = true new – Whether the instance is visible when previewing all instances. - weightClass: integer = 400 (`u16`) new – The weight class of the instance. - widthClass: integer = 5 (`u16`) new – The width class of the instance. - indexPath One of 4 options. - Option. `array` new – The index path of a node on a path. Tuple with 2 items. - #0: number (`u32`) – The index of a path shape. - #1: number (`u32`) – The index of a node on a path. - Option. `array` new – The index path of an inflection, where the first two path components point to an on-curve node that finishes a curve segment. The inflection component is most likely `0`. Tuple with 3 items. - #0: number (`u32`) – The index of a path shape. - #1: number (`u32`) – The index of a node on a path. - #2: number (`u32`) – The index of an inflection. - Option. `array` new – Points to the intersection of two path segments. The nodes are the ones finishing the segments. Tuple with 4 items. - #0: number (`u32`) – The index of a path shape (P1). - #1: number (`u32`) – The index of a node (N1) on P1. - #2: number (`u32`) – The index of a path shape (P2). - #3: number (`u32`) – The index of a node (N2) on P2. - Option. `string` new – An attachment to the left or right side-bearing. - Possible values: `"lsb"`, `"rsb"`. - kerning: object = {} – Maps master IDs to kerning definitions. - string: object – Maps glyph names or class names to kerning partners. - string: object – Maps glyph names or class names to kerning values. - string: number (`f64`) - layer: object – (`GSLayer`) - anchors: array = [] – The anchors of the layer. See [`anchor`](#spec-glyphs-3-anchor) for items. - annotations: array = [] – The annotations of the layer. See [`annotation`](#spec-glyphs-3-annotation) for items. - associatedMasterId: string – The unique identifier of the associated master. Omitted when equal to the layer ID. - attr: object = {} new – The attributes of the layer. See [`layerAttr`](#spec-glyphs-3-layerAttr). - background: object - anchors: array = [] – The anchors of the background layer. See [`anchor`](#spec-glyphs-3-anchor) for items. - annotations: array = [] – The annotations of the background layer. See [`annotation`](#spec-glyphs-3-annotation) for items. - backgroundImage: object – The background image of the layer. See [`image`](#spec-glyphs-3-image). - guides: array = [] new – The guides of the background layer. See [`guide`](#spec-glyphs-3-guide) for items. - hints: array = [] – The hints of the background layer. See [`hint`](#spec-glyphs-3-hint) for items. - shapes: array = [] new – The shapes of the background layer. See [`shape`](#spec-glyphs-3-shape) for items. - backgroundImage: object – The background image of the layer. See [`image`](#spec-glyphs-3-image). - color – The color label of the layer. See [`colorLabel`](#spec-glyphs-3-colorLabel). - guides: array = [] new – The guides of the layer. See [`guide`](#spec-glyphs-3-guide) for items. - hints: array = [] – The hints of the layer. See [`hint`](#spec-glyphs-3-hint) for items. - layerId: string required – The unique ID of the layer. Matches the master ID when the layer is a master layer. - metricBottom: string new – The bottom metrics key of the layer. - metricLeft: string new – The left metrics key of the layer. - metricRight: string new – The right metrics key of the layer. - metricTop: string new – The top metrics key of the layer. - metricVertOrigin: string new – The vertical origin metrics key of the layer. - metricVertWidth: string new – The vertical width metrics key of the layer. - metricWidth: string new – The width metrics key of the layer. - name: string = "" – The name of the layer. Master layers and other special layers display a name in the Glyphs UI that is derived from the layer’s role (for example, the name of the master that the layer belongs to). These derived names are not written to the file. Instead, this name is only displayed in the UI for non-special layers (like backup layers). - partSelection: object new – The Smart Glyph setting of the layer. The keys are the property names. The values are either `1` if the layer corresponds to the bottom value of the property or `2` if the layer corresponds to the top value of the property. If a layer is neither the top nor the bottom value, the property is omitted. - string: integer One of 2 options. - Option. `1` – Bottom: the layer corresponds to the bottom value of the property. - Option. `2` – Top: the layer corresponds to the top value of the property. - shapes: array = [] new – The shapes of the layer. See [`shape`](#spec-glyphs-3-shape) for items. - userData: object = {} – Custom data associated with the layer. See [`userData`](#spec-glyphs-3-userData). - vertOrigin: number = 0 (`f64`) new – The vertical origin of the layer. - vertWidth: number = 0 (`f64`) new – The vertical width of the layer. - visible: boolean = false – Whether the layer is visible. - width: number (`f64`) required – The width of the layer. - layerAttr: object - axisRules: array = [] new – Alternative-layer rules, ordered like the font axes. - #: object - min: number (`f64`) – The minimum matching axis value. - max: number (`f64`) – The maximum matching axis value. - color: boolean = false new – Whether the layer is an Apple color layer. - colorPalette new – The color palette index of a color palette layer. One of 2 options. - Option. `integer` (`u16`) – The color palette index of a color palette layer. - Option. `"*"` – The foreground text color (color index 65535). - coordinates: array = [] new – Intermediate-layer coordinates, ordered like the relevant axes. Starting in version 4, also contains the glyph-local axis coordinates for layers of Smart Glyphs. - #: number (`f64`) – The explicit coordinate value. - sbixSize: integer (`u16`) new – The Apple sbix image size. - svg: boolean = false new – Whether the layer is an SVG color layer. - lineCap: integer (`u8`) One of 4 options. - Option. `0` – Butt: ends the stroke at the path endpoint. - Option. `1` – Round: extends the stroke with a semicircular cap. - Option. `2` – Square: extends the stroke with a square cap. - Option. `3` – Round inset: ends the stroke with an inset semicircular cap. - metric: object – (`GSMetric`) – A font-wide definition for a metric such as an alignment zone or an italic angle. - filter: string – An NSPredicate format string selecting the glyphs to which this metric applies. When omitted, the metric has no glyph filter. - name: string = "" – The descriptive name of the metric. It can label a custom metric or distinguish metrics of the same type. - type: string – The built-in metric type. A custom metric has no built-in type. The streaming reader also recognizes built-in types in `name` for older files. `italic slope` is supported by Glyphs 4 and can be saved in file format versions 3 and 4. - Possible values: `"ascender"`, `"cap height"`, `"slant height"`, `"x-height"`, `"midHeight"`, `"bodyHeight"`, `"descender"`, `"baseline"`, `"italic angle"`, `"italic slope"`. - metricNumber: object – (`GSMetric`) – A font-wide definition for a named number, with a value in each master. Named numbers can be referenced in feature code. - name: string = "" – The name used to look up the number. - metricStem: object – (`GSMetric`) – A font-wide stem definition with a width in each master. - filter: string – An NSPredicate format string selecting the glyphs to which this stem applies. When omitted, the stem has no glyph filter. - horizontal: boolean = false – Whether the stem runs horizontally. The default is a vertical stem. - name: string = "" – The name of the stem. - metricStore: object – (`GSMetricStore`) - over: number = 0 (`f64`) – The overshoot of an alignment zone in font units. For `italic slope`, this is the rise of the slope. - pos: number = 0 (`f64`) – The position relative to the baseline in font units. For `italic angle`, this is the angle in degrees clockwise from the y-axis. For `italic slope`, this is the run of the slope. - node: array – (`GSNode`) Tuple with 3–4 items. - #0: number (`f64`) – The x-coordinate of the node. - #1: number (`f64`) – The y-coordinate of the node. - #2: string – The configuration of the node expressed as a sequence of characters. Types: `m`: move, `l`: line, `c`: cubic curve, `q`: quadratic curve, `o`: off-curve. Connection (may follow `l`, `c`, `q`): `s`: smooth. Orientation (left is the default): `R`: right, `C`: center. Locking (not locked is the default): `X`: locked. - #3: object = {} – The attributes of the node. See [`attr`](#spec-glyphs-3-attr). - infoProperty – (`GSInfoProperty`) One of 2 options. - Option. `object` - key: string required – The key of the property. - value required – The value of the property. - Option. `object` - key: string required – The key of the property. - values: array required – The values of the property. See [`infoValue`](#spec-glyphs-3-infoValue) for items. - infoValue: object – (`GSInfoValue`) - language: string required – The language tag of the string value. The tag is based on the [OpenType Language System Tags](https://learn.microsoft.com/en-us/typography/opentype/spec/languagetags) but omits trailing whitespace. Examples: `"dflt"`, `"DEU"`. - value: string required – The localized string value. - orientation: string – (`GSElementOrientation`) - Possible values: `"left"`, `"center"`, `"right"`. - partProperty: object – (`GSPartProperty`) - bottomName: string – The name of the bottom value of the property. (Unused) - bottomValue: integer (`i32`) – The lower end of the value range of the property. - name: string – The name of the property. - topName: string – The name of the top value of the property. (Unused) - topValue: integer (`i32`) – The upper end of the value range of the property. - palettes: array – (`GSPalettes`) – The version 3 structure of the `Color Palettes` custom parameter. - #: array See [`color`](#spec-glyphs-3-color) for items. - path: object – (`GSPath`) - attr: object = {} new – The attributes of the path. See [`shapeAttr`](#spec-glyphs-3-shapeAttr). - closed: boolean required – Whether the path is closed. - locked: boolean = false new – Whether the path is locked. - nodes: array required – The on- and off-curve nodes of the path. See [`node`](#spec-glyphs-3-node) for items. - pos: array Tuple with 2 items. - #0: number (`f64`) – The x-coordinate of the position. - #1: number (`f64`) – The y-coordinate of the position. - scale: array Tuple with 2 items. - #0: number (`f64`) – The horizontal scale factor. - #1: number (`f64`) – The vertical scale factor. - shape – (`GSShape`) One of 2 options. - Option. `object` See [`path`](#spec-glyphs-3-path). - Option. `object` See [`component`](#spec-glyphs-3-component). - shapeAttr: object - color – The color label of the shape. See [`colorLabel`](#spec-glyphs-3-colorLabel). - fill: boolean = false – Whether a stroked path is also filled. - fillColor – The fill color of the shape. See [`color`](#spec-glyphs-3-color). - gradient new – The fill gradient of the shape. See [`gradient`](#spec-glyphs-3-gradient). - lineCapEnd: integer = 0 (`u8`) new – The line cap style at the end of the stroke. See [`lineCap`](#spec-glyphs-3-lineCap). - lineCapStart: integer = 0 (`u8`) new – The line cap style at the start of the stroke. See [`lineCap`](#spec-glyphs-3-lineCap). - lineJoin: integer = 0 (`u8`) – The line join style of the stroke. One of 3 options. - Option. `0` – Miter: extends the segment edges until they intersect. - Option. `1` – Round: connects the segment edges with a circular arc. - Option. `2` – Bevel: connects the segment edges with a straight edge. - mask: boolean = 0 new – How the shape masks preceding shapes in the same composition unit. - reversePaths: boolean = false – Whether paths from the shape are reversed for drawing/export. - shadow: object new – The outer shadow of the shape. See [`shadow`](#spec-glyphs-3-shadow). - shadowIn: object new – The inner shadow of the shape. See [`shadow`](#spec-glyphs-3-shadow). - strokeColor – The stroke color of the shape. See [`color`](#spec-glyphs-3-color). - strokeHeight: number (`f64`) – The vertical stroke size, or an expression resolving to one. Falls back to the value of `strokeWidth` when unset. - strokePos: number = 0.5 (`f64`) – The stroke position. In version 4, values range from inside (-1) through centered (0) to outside (1). In version 3, values range from outside (0) through centered (0.5) to inside (1). - strokeWidth: number (`f64`) – The horizontal stroke size, or an expression resolving to one. - shadow: object – (`GSShadow`) - blur: string = "4" – The shadow blur radius, stored as an expression string. - color – The shadow color. See [`color`](#spec-glyphs-3-color). - offsetX: string = "4" – The horizontal shadow offset, stored as an expression string. - offsetY: string = "4" – The vertical shadow offset, stored as an expression string. - size: array Tuple with 2 items. - #0: number (`f64`) – The width. - #1: number (`f64`) – The height. - slant: array Tuple with 2 items. - #0: number (`f64`) – The horizontal slant factor. - #1: number (`f64`) – The vertical slant factor. - userData: object ## Changes ## 18. November 2026 - Split `metric` schema into separate schemas that match their respective use cases. ### 10. July 2025 - Add descriptions to `GSComponentAlignment`. ### 14. Jan. 2025 - Reworked JSON Schemas and added variants for package and autosave files. - Expanded descriptions and annotations for most values. ### 1. March 2021 - add description of .glyphspackage files ### September – December 2020 - several fixes and additions - add JSON schema for Glyphs 2 and 3 files ### 4. Jan. 2019 - First Draft for version 3 ### 1. Oct. 2018: - Add Notes about special cases - Better general explanation ### 21. April 2018: - Add .appVersion, disablesNiceNames, customValue, weight, width, custom - Fix typos: paths, widthValue ### 4. Feb. 2016: - added hints - updated and added a few field in layers