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

FamilyInfo

Information about a font family. Style values are split between those that are consistent within the family and those that vary between fonts. Variation axes, feature tags, and character subsets are unified from all fonts in the family.

type FamilyInfo = {
    name: string;
    fonts: { font: FontRef; styleValues: Partial<StyleValues> }[];
    styleValues: Partial<StyleValues>;
    axisInstanceValues: Partial<Record<string, number[]>>;
    axes: AxisInfo[];
    features: FeatureInfo[];
    namedSubsets: SubsetName[];
}
  • Defined in index.ts:30
Index

Properties

name fonts styleValues axisInstanceValues axes features namedSubsets

Properties

name

name: string

Family name, shared amongst all fonts contained within.

  • Defined in index.ts:32

fonts

fonts: { font: FontRef; styleValues: Partial<StyleValues> }[]

Type Declaration

  • font: FontRef
  • styleValues: Partial<StyleValues>

    The font's unique style values--those that are specific to the font but not the family. For instance, a font family with variable weight but separate upright and italic faces would have just the italic and slant style values here.

  • Defined in index.ts:33

styleValues

styleValues: Partial<StyleValues>

Style values shared among all fonts in the family.

  • Defined in index.ts:45

axisInstanceValues

axisInstanceValues: Partial<Record<string, number[]>>

If this family has named instances, this contains every axis' instance values across all fonts in the family.

  • Defined in index.ts:49

axes

axes: AxisInfo[]

Variation axes for all fonts in the family. Does not include weight, width, italic, or slant.

  • Defined in index.ts:53

features

features: FeatureInfo[]

Feature tags for all fonts in the family.

  • Defined in index.ts:57

namedSubsets

namedSubsets: SubsetName[]

Named subsets for which any fonts in the family have coverage.

  • Defined in index.ts:61