From 4de921414b8e5ed2c2149db5b6c463027419c416 Mon Sep 17 00:00:00 2001 From: samme Date: Fri, 15 Nov 2024 11:51:15 -0800 Subject: [PATCH] Fix FontFileConfig --- src/loader/filetypes/typedefs/FontFileConfig.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/loader/filetypes/typedefs/FontFileConfig.js b/src/loader/filetypes/typedefs/FontFileConfig.js index af0e65c9b8..a4812d60fd 100644 --- a/src/loader/filetypes/typedefs/FontFileConfig.js +++ b/src/loader/filetypes/typedefs/FontFileConfig.js @@ -3,7 +3,8 @@ * * @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='js'] - The default file extension to use if no url is provided. - * @property {string} [type='script'] - The script type. Should be either 'script' for classic JavaScript, or 'module' if the file contains an exported module. + * @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. */