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

FamilySubsetSettings

FamilySubsetSettings:
    | {
        enableSubsetting: true;
        styleValues: Partial<Record<StyleKey, SubsetAxisSetting>>;
        axes: Partial<Record<string, SubsetAxisSetting>>;
        features?: Partial<Record<string, boolean>>;
        includeCharacters: CharacterSetSettings | CharacterSetSettings[] | "all";
        overrideName?: string;
    }
    | { enableSubsetting: false; overrideName?: string }

Settings for subsetting (or not subsetting) a font family.

Type Declaration

  • {
        enableSubsetting: true;
        styleValues: Partial<Record<StyleKey, SubsetAxisSetting>>;
        axes: Partial<Record<string, SubsetAxisSetting>>;
        features?: Partial<Record<string, boolean>>;
        includeCharacters: CharacterSetSettings | CharacterSetSettings[] | "all";
        overrideName?: string;
    }
    • enableSubsetting: true
    • styleValues: Partial<Record<StyleKey, SubsetAxisSetting>>

      Settings for style values: weight, width, and italic/slant.

    • axes: Partial<Record<string, SubsetAxisSetting>>

      Settings for variation axes, keyed by tag.

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

      Feature tags to explicitly include or exclude. If not specified here, features will be included or excluded based on what HarfBuzz thinks.

    • includeCharacters: CharacterSetSettings | CharacterSetSettings[] | "all"

      Include these character sets. If multiple are provided, the font(s) will be instanced into multiple files, each containing one of the character sets. If "all" is passed, all characters from the input font(s) will be included.

    • Optional
      overrideName?: string

      Override the name of this font family in the output filenames and generated CSS.

  • { enableSubsetting: false; overrideName?: string }
    • enableSubsetting: false
    • Optional
      overrideName?: string

      Override the name of this font family in the output filenames and generated CSS.

  • Defined in index.ts:490