Skip to content

Commit

Permalink
Warn when ligature fonts fail to download
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Jul 24, 2022
1 parent cbb13aa commit 9acc36f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions addons/xterm-addon-ligatures/bin/download-fonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ const fontsFolder = path.join(__dirname, '../fonts');
async function download() {
await mkdirp(fontsFolder);

await downloadFiraCode();
await downloadIosevka();

console.log('Loaded all fonts for testing')
try {
await downloadFiraCode();
await downloadIosevka();
console.log('Loaded all fonts for testing')
} catch (e) {
console.warn('Fonts failed to download, ligature tests will not work', e);
}
}

async function downloadFiraCode() {
Expand Down

0 comments on commit 9acc36f

Please sign in to comment.