Skip to content

Commit

Permalink
Custom fonts - storage part (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin authored Aug 16, 2023
1 parent 5392b13 commit 81fe718
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/AssetType.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ const AssetType = {
name: 'Sprite',
runtimeFormat: DataFormat.JSON,
immutable: true
},
Font: {
contentType: 'font/ttf',
name: 'Font',
runtimeFormat: DataFormat.TTF,
immutable: true
}
};

Expand Down
6 changes: 5 additions & 1 deletion src/DataFormat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 81fe718

Please sign in to comment.