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

SubsetSettings

Settings to use when subsetting a font file.

type SubsetSettings = {
    axisValues: SubsetAxisSetting[];
    features?: Partial<Record<string, boolean>>;
    dropTables?: string[];
    unicodeRanges:
        | "all"
        | { named: SubsetName[]; custom: (readonly [number, number] | number)[] };
    preprocess?: boolean;
}
  • Defined in font-types.ts:309
Index

Properties

axisValues features? dropTables? unicodeRanges preprocess?

Properties

axisValues

axisValues: SubsetAxisSetting[]

OpenType variation axis settings, including ones for style values. You can preserve variation axes, reduce their ranges, or pin them to specific values.

  • Defined in font-types.ts:314

Optionalfeatures

features?: Partial<Record<string, boolean>>

Map of feature tags to whether they should be included or not. Any features not accounted here will be included or omitted depending on their FeatureInfo#keepByDefault values.

  • Defined in font-types.ts:319

OptionaldropTables

dropTables?: string[]

Instead of subsetting tables with these tags, drop them completely.

  • Defined in font-types.ts:323

unicodeRanges

unicodeRanges:
    | "all"
    | { named: SubsetName[]; custom: (readonly [number, number] | number)[] }

Unicode character ranges to include in the subsetted font. You can choose to include all characters in the original font, or select specific named character sets and custom ranges.

  • Defined in font-types.ts:328

Optionalpreprocess

preprocess?: boolean

Whether to preprocess the font being subsetted. This provides a speedup if subsetting a font multiple times (e.g. to instance it into multiple files).

  • Defined in font-types.ts:336