"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.palatino = exports.optima = exports.openSans = exports.myriad = exports.lucidaGrande = exports.inter = exports.hoeflerText = exports.helveticaNeue = exports.gillSans = exports.futura = exports.fonts = exports.didot = exports.chalkboard = exports.brushScript = exports.bookAntiqua = exports.baskerville = exports.arial = exports.americanTypewriter = void 0; /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ /** * This type contains a unions of all supported font labels, or the the name of * the font the user would see in a UI. */ /** * This type contains a union of all supported font values, equivalent to the CSS * `font-value` property. */ /** * An interface representing a font in Canvas, with a textual label and the CSS * `font-value`. */ // This function allows one to create a strongly-typed font for inclusion in // the font collection. As a result, the values and labels are known to the // type system, preventing one from specifying a non-existent font at build // time. function createFont(font) { return font; } const americanTypewriter = createFont({ label: 'American Typewriter', value: "'American Typewriter', 'Courier New', Courier, Monaco, mono" }); exports.americanTypewriter = americanTypewriter; const arial = createFont({ label: 'Arial', value: 'Arial, sans-serif' }); exports.arial = arial; const baskerville = createFont({ label: 'Baskerville', value: "Baskerville, Georgia, Garamond, 'Times New Roman', Times, serif" }); exports.baskerville = baskerville; const bookAntiqua = createFont({ label: 'Book Antiqua', value: "'Book Antiqua', Georgia, Garamond, 'Times New Roman', Times, serif" }); exports.bookAntiqua = bookAntiqua; const brushScript = createFont({ label: 'Brush Script', value: "'Brush Script MT', 'Comic Sans', sans-serif" }); exports.brushScript = brushScript; const chalkboard = createFont({ label: 'Chalkboard', value: "Chalkboard, 'Comic Sans', sans-serif" }); exports.chalkboard = chalkboard; const didot = createFont({ label: 'Didot', value: "Didot, Georgia, Garamond, 'Times New Roman', Times, serif" }); exports.didot = didot; const futura = createFont({ label: 'Futura', value: 'Futura, Impact, Helvetica, Arial, sans-serif' }); exports.futura = futura; const gillSans = createFont({ label: 'Gill Sans', value: "'Gill Sans', 'Lucida Grande', 'Lucida Sans Unicode', Verdana, Helvetica, Arial, sans-serif" }); exports.gillSans = gillSans; const helveticaNeue = createFont({ label: 'Helvetica Neue', value: "'Helvetica Neue', Helvetica, Arial, sans-serif" }); exports.helveticaNeue = helveticaNeue; const hoeflerText = createFont({ label: 'Hoefler Text', value: "'Hoefler Text', Garamond, Georgia, 'Times New Roman', Times, serif" }); exports.hoeflerText = hoeflerText; const inter = createFont({ label: 'Inter', value: "'Inter', 'Inter UI', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'" }); exports.inter = inter; const lucidaGrande = createFont({ label: 'Lucida Grande', value: "'Lucida Grande', 'Lucida Sans Unicode', Lucida, Verdana, Helvetica, Arial, sans-serif" }); exports.lucidaGrande = lucidaGrande; const myriad = createFont({ label: 'Myriad', value: 'Myriad, Helvetica, Arial, sans-serif' }); exports.myriad = myriad; const openSans = createFont({ label: 'Open Sans', value: "'Open Sans', Helvetica, Arial, sans-serif" }); exports.openSans = openSans; const optima = createFont({ label: 'Optima', value: "Optima, 'Lucida Grande', 'Lucida Sans Unicode', Verdana, Helvetica, Arial, sans-serif" }); exports.optima = optima; const palatino = createFont({ label: 'Palatino', value: "Palatino, 'Book Antiqua', Georgia, Garamond, 'Times New Roman', Times, serif" }); /** * A collection of supported fonts. */ exports.palatino = palatino; const fonts = [americanTypewriter, arial, baskerville, bookAntiqua, brushScript, chalkboard, didot, futura, gillSans, helveticaNeue, hoeflerText, inter, lucidaGrande, myriad, openSans, optima, palatino]; exports.fonts = fonts;