diff --git a/src/AssetType.js b/src/AssetType.js index 85165d0c..96e29663 100644 --- a/src/AssetType.js +++ b/src/AssetType.js @@ -40,6 +40,12 @@ const AssetType = { name: 'Sprite', runtimeFormat: DataFormat.JSON, immutable: true + }, + Font: { + contentType: 'font/ttf', + name: 'Font', + runtimeFormat: DataFormat.TTF, + immutable: true } }; diff --git a/src/DataFormat.js b/src/DataFormat.js index 5fbae489..3f158894 100644 --- a/src/DataFormat.js +++ b/src/DataFormat.js @@ -10,7 +10,11 @@ const DataFormat = { SB2: 'sb2', SB3: 'sb3', SVG: 'svg', - WAV: 'wav' + WAV: 'wav', + TTF: 'ttf', + OTF: 'otf', + WOFF: 'woff', + WOFF2: 'woff2' }; module.exports = DataFormat;