Skip to content

Commit

Permalink
Fix FontFileConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
samme committed Nov 15, 2024
1 parent 97e3e67 commit 4de9214
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/loader/filetypes/typedefs/FontFileConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/

0 comments on commit 4de9214

Please sign in to comment.