fontawesome-subset
Version:
Utility to create subsets for FontAwesome and FontAwesome Pro.
67 lines (66 loc) • 2.19 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SUBSET_STYLE_MAP = exports.SUBSET_FAMILY_MAP = exports.OUTPUT_FORMAT_MAP = exports.STYLE_FONT_MAP = void 0;
// Maps style to actual font name / file name.
exports.STYLE_FONT_MAP = {
solid: "fa-solid-900",
light: "fa-light-300",
regular: "fa-regular-400",
thin: "fa-thin-100",
brands: "fa-brands-400",
duotone: "fa-duotone-900",
"sharp-light": "fa-sharp-light-300",
"sharp-regular": "fa-sharp-regular-400",
"sharp-solid": "fa-sharp-solid-900",
"sharp-thin": "fa-sharp-thin-100",
"duotone-light": "fa-duotone-light-300",
"duotone-regular": "fa-duotone-regular-400",
"duotone-thin": "fa-duotone-thin-100",
"sharp-duotone-light": "fa-sharp-duotone-light-300",
"sharp-duotone-regular": "fa-sharp-duotone-regular-400",
"sharp-duotone-solid": "fa-sharp-duotone-solid-900",
"sharp-duotone-thin": "fa-sharp-duotone-thin-100",
};
exports.OUTPUT_FORMAT_MAP = {
sfnt: "ttf",
woff: "woff",
woff2: "woff2",
};
exports.SUBSET_FAMILY_MAP = {
"sharp-light": "sharp",
"sharp-regular": "sharp",
"sharp-solid": "sharp",
"sharp-thin": "sharp",
"duotone-regular": "duotone",
"duotone-light": "duotone",
"duotone-thin": "duotone",
"sharp-duotone-solid": "sharp-duotone",
"sharp-duotone-regular": "sharp-duotone",
"sharp-duotone-light": "sharp-duotone",
"sharp-duotone-thin": "sharp-duotone",
brands: "classic",
duotone: "duotone",
light: "classic",
regular: "classic",
solid: "classic",
thin: "classic",
};
exports.SUBSET_STYLE_MAP = {
"sharp-light": "light",
"sharp-regular": "regular",
"sharp-solid": "solid",
"sharp-thin": "thin",
"duotone-light": "light",
"duotone-regular": "regular",
"duotone-thin": "thin",
"sharp-duotone-light": "light",
"sharp-duotone-regular": "regular",
"sharp-duotone-solid": "solid",
"sharp-duotone-thin": "thin",
brands: "brands",
duotone: "solid",
light: "light",
regular: "regular",
solid: "solid",
thin: "thin",
};