Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix FontFileConfig #6947

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
*/