Declaration

enum GSFormatVersion

Declaration

enum GSFormatVersion : uint8_t;

Declaration

GSFormatVersion

Overview

The format version controls how model data is read and written. Use currentGSFormatVersionCurrentGSFormatVersionCurrent unless the output must remain compatible with an earlier version of Glyphs. Earlier formats cannot represent all current model data.

Versions of the Glyphs source format.

Overview

A format version identifies the serialization rules used when reading or writing Glyphs model data. It does not describe the in-memory model or whether a font is stored as a single file or a package.

Use currentGSFormatVersionCurrentGSFormatVersionCurrent when backward compatibility is not required. Writing an earlier format can fail when model data requires features introduced by a newer format. Glyphs 1 and Glyphs 2 share format version 1, so there is no format version 2.

Topics

Format Versions

  • The source format used by Glyphs 1 and Glyphs 2.

  • The source format introduced by Glyphs 3.

  • The source format introduced by Glyphs 4.

  • The most recent source format supported by the framework.

Validation

Initializers

Default Implementations

Topics

Format Versions

Validation

Relationships

Conforms To

  • Swift.BitwiseCopyable
  • Swift.Equatable
  • Swift.Hashable
  • Swift.RawRepresentable
  • Swift.Sendable
  • Swift.SendableMetatype