UNPKG

@applicaster/zapplicaster-cli

Version:

CLI Tool for the zapp app and Quick Brick project

164 lines (154 loc) 3.1 kB
const FONTS = { kan: [ // Kan Fonts "SimplerPro_V3-RegularItalic.ttf", "SimplerPro_V3-Regular.ttf", "SimplerPro_V2-semibold.otf", "simpler-bold-webfont.woff2", "simpler-black-webfont.woff2", ], google: [ // Common Google Fonts "Roboto-Bold.woff2", ], web: [ // Web Fonts "montserrat-latin-300italic.woff2", "montserrat-latin-400.woff", ], irregular: [ // Irregular Named Fonts "Zapp-SemiBold.Large_Italic MaxV2.woff2", "Zapp-BOLD.Large.With.Lots.Of.Punctuation_Italic MaxV2.woff2", "ABWEB____.TTF", ], unsupported: [ // Unsupported Fonts "simpler-regular-webfont.eot", ], }; const EXT_FORMAT = { woff2: "woff2", woff: "woff", eot: "embedded-opentype", ttf: "truetype", otf: "opentype", }; const WEIGHT = { Thin: 100, ExtraLight: 200, UltraLight: 200, Light: 300, Normal: 400, Regular: 400, // Not-standard Medium: 500, SemiBold: 600, DemiBold: 600, Bold: 700, ExtraBold: 800, UltraBold: 800, Black: 900, Heavy: 900, }; const STYLE = { italic: "italic", normal: "normal", oblique: "oblique", }; const KAN_FONTS = [ { name: "SimplerPro_V3-RegularItalic.ttf", format: "truetype", family: "SimplerPro_V3-RegularItalic", weight: 400, style: "italic", }, { name: "SimplerPro_V3-Regular.ttf", format: "truetype", family: "SimplerPro_V3-Regular", weight: 400, style: undefined, }, { name: "SimplerPro_V2-semibold.otf", format: "opentype", family: "SimplerPro_V2-semibold", weight: 600, style: undefined, }, { name: "simpler-bold-webfont.woff2", format: "woff2", family: "simpler-bold-webfont", weight: 700, style: undefined, }, { name: "simpler-black-webfont.woff2", format: "woff2", family: "simpler-black-webfont", weight: 900, style: undefined, }, ]; const GOOGLE_FONTS = [ { name: "Roboto-Bold.woff2", format: "woff2", family: "Roboto-Bold", weight: 700, style: undefined, }, ]; const WEB_FONTS = [ { name: "montserrat-latin-300italic.woff2", format: "woff2", family: "montserrat-latin-300italic", weight: 300, style: "italic", }, { name: "montserrat-latin-400.woff", format: "woff", family: "montserrat-latin-400", weight: 400, style: undefined, }, ]; const IRREGULAR_FONTS = [ { name: "Zapp-SemiBold.Large_Italic MaxV2.woff2", format: "woff2", family: "Zapp-SemiBold.Large_Italic MaxV2", weight: 600, style: "italic", }, { name: "Zapp-BOLD.Large.With.Lots.Of.Punctuation_Italic MaxV2.woff2", format: "woff2", family: "Zapp-BOLD.Large.With.Lots.Of.Punctuation_Italic MaxV2", weight: 700, style: "italic", }, { name: "ABWEB____.TTF", format: "truetype", family: "ABWEB____", weight: undefined, style: undefined, }, ]; const UNSUPPORTED_FONTS = []; module.exports = { FONTS, EXT_FORMAT, WEIGHT, STYLE, KAN_FONTS, GOOGLE_FONTS, WEB_FONTS, IRREGULAR_FONTS, UNSUPPORTED_FONTS, };