SubsettedFont
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])[];
}
Index
Properties
familyName
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'.
subfamilyName
This font's subfamily name (e.g. "Light Italic").
format
Whether this font contains TrueType (glyf) outlines or OpenType (CFF or CFF2) outlines.
data
The actual subsetted font file data.
styleValues
The font's style values (weight, width, italic, slant), either variable or fixed.
styleAttributes
This font's style axis attributes.
axes
Information about the non-style variation axes. All axes from the original font are included here, even if they were pinned to fixed values.
namedInstance
If all variation axes were pinned, and the values they were pinned to correspond to a named instance, this is that named instance.
unicodeRanges
All the Unicode code points contained in the subsetted font.
Output font after subsetting.