Glypht
  • Documentation
  • Discussions
  • GitHub
Navigation
  • Documentation
    • @glypht/bundler-utils
      • NodeType
      • CSSSpan
      • CSSOutput
      • FeatureMetadata
      • FamilyInfo
      • SubsetAxisSetting
      • ExportedFont
      • CharacterSetSettings
      • FamilySubsetSettings
      • FamilySettings
      • ExportFontsSettings
      • featureMetadata
      • sortFontsIntoFamilies
      • exportedFontsToCSS
      • exportFonts
      • parseUnicodeRanges
      • parseRanges
      • formatUnicodeRanges
    • @glypht/cli
      • GlyphtConfig
      • build
    • @glypht/core
      • AxisValueFormat
      • AxisValueFlags
      • WoffCompressionContext
      • GlyphtContext
      • CompressOptions
      • DecompressOptions
      • LoadFontsOptions
      • AxisInfo
      • SubsetAxisInfo
      • StyleValue
      • FeatureInfo
      • NamedInstance
      • StyleKey
      • StyleValues
      • SfntVersion
      • DesignAxisRecord
      • AxisValueSingle
      • AxisValueRange
      • AxisValueLinked
      • AxisValueMultiple
      • AxisValue
      • StyleAttributes
      • SubsettedFont
      • SubsetInfo
      • SubsetAxisSetting
      • SubsetSettings
      • FontRef
      • SubsetName
      • SUBSET_NAMES
    • Comparison with other tools
    • Web app

SubsettedFont

Output font after subsetting.

type SubsettedFont = {
    familyName: string;
    subfamilyName: string;
    format: SfntVersion;
    data: Uint8Array<ArrayBuffer>;
    styleValues: StyleValues;
    styleAttributes: StyleAttributes;
    axes: SubsetAxisInfo[];
    namedInstance: NamedInstance | null;
    unicodeRanges: (number | readonly [number, number])[];
}
  • Defined in font-types.ts:242
Index

Properties

familyName subfamilyName format data styleValues styleAttributes axes namedInstance unicodeRanges

Properties

familyName

familyName: string

This font's family name, not including any weight, width, or style modifiers (e.g. "Inter Display"). This should be used for the filename and CSS 'font-family'.

  • Defined in font-types.ts:247

subfamilyName

subfamilyName: string

This font's subfamily name (e.g. "Light Italic").

  • Defined in font-types.ts:249

format

format: SfntVersion

Whether this font contains TrueType (glyf) outlines or OpenType (CFF or CFF2) outlines.

  • Defined in font-types.ts:251

data

data: Uint8Array<ArrayBuffer>

The actual subsetted font file data.

  • Defined in font-types.ts:253

styleValues

styleValues: StyleValues

The font's style values (weight, width, italic, slant), either variable or fixed.

  • Defined in font-types.ts:255

styleAttributes

styleAttributes: StyleAttributes

This font's style axis attributes.

  • Defined in font-types.ts:257

axes

axes: SubsetAxisInfo[]

Information about the non-style variation axes. All axes from the original font are included here, even if they were pinned to fixed values.

  • Defined in font-types.ts:262

namedInstance

namedInstance: NamedInstance | null

If all variation axes were pinned, and the values they were pinned to correspond to a named instance, this is that named instance.

  • Defined in font-types.ts:267

unicodeRanges

unicodeRanges: (number | readonly [number, number])[]

All the Unicode code points contained in the subsetted font.

  • Defined in font-types.ts:271