Skip to content

Commit

Permalink
Merge pull request #3933 from Tyriar/3784
Browse files Browse the repository at this point in the history
Warn when ligature fonts fail to download
  • Loading branch information
Tyriar authored Jul 28, 2022
2 parents 0b81af1 + f1ff424 commit 4372d8c
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 4372d8c

Please sign in to comment.