SubsetSettings
type SubsetSettings = {
axisValues: SubsetAxisSetting[];
features?: Partial<Record<string, boolean>>;
dropTables?: string[];
unicodeRanges:
| "all"
| { named: SubsetName[]; custom: (readonly [number, number] | number)[] };
preprocess?: boolean;
}
Index
Properties
Properties
axisValues
OpenType variation axis settings, including ones for style values. You can preserve variation axes, reduce their ranges, or pin them to specific values.
Optionalfeatures
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.
OptionaldropTables
dropTables?: string[]
Instead of subsetting tables with these tags, drop them completely.
unicodeRanges
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.
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).
Settings to use when subsetting a font file.