UNPKG

phaser

Version:

A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers from the team at Phaser Studio Inc.

11 lines (10 loc) 671 B
/** * @typedef {object} Phaser.Types.Loader.FileTypes.FontFileConfig * * @property {string} key - The key of the file. Must be unique within the Loader. * @property {string} [url] - The absolute or relative URL to load the file from. * @property {string} [extension='ttf'] - The default file extension to use if no url is provided. * @property {string} [format='truetype'] - The font type. Should be a string, like 'truetype' or 'opentype'. * @property {object} [descriptors] - An optional object containing font descriptors for the Font Face. * @property {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file. */