diff --git a/package-lock.json b/package-lock.json index 4de4757..37cb013 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,9 +5,9 @@ "requires": true, "dependencies": { "@librescore/fonts": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/@librescore/fonts/-/fonts-0.2.1.tgz", - "integrity": "sha512-lzEk82wZWZVA4CvE2S6Wwc6EAvFZ0G6L2ExNjpJLebxAh0k/eNpHeO9a2LFwfMVUfacVWwXhDkAbmJpvUGcqzA==" + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@librescore/fonts/-/fonts-0.4.0.tgz", + "integrity": "sha512-T286OfxcQAYc/Bll9AtSP2ElggqTpoa08uY9Kgx6z1TcDVn7i7uMkKVO7sw/8aELWFNRmQE2vGQuEkmJNfWmBA==" }, "@librescore/sf3": { "version": "0.3.0", diff --git a/package.json b/package.json index 87f4e04..8b15f19 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "dist/main.js" ], "dependencies": { - "@librescore/fonts": "^0.2.1", + "@librescore/fonts": "^0.4.0", "@librescore/sf3": "^0.3.0", "detect-node": "^2.0.4", "inquirer": "^7.3.3", diff --git a/src/mscore.ts b/src/mscore.ts index b0419ef..d5b23ef 100644 --- a/src/mscore.ts +++ b/src/mscore.ts @@ -12,7 +12,7 @@ const WEBMSCORE_URL = `https://cdn.jsdelivr.net/npm/webmscore@${depVers.webmscor // fonts for Chinese characters (CN) and Korean hangul (KR) // JP characters are included in the CN font -const FONT_URLS = ['CN', 'KR'].map(l => `https://cdn.jsdelivr.net/npm/@librescore/fonts@${depVers['@librescore/fonts']}/SourceHanSans${l}-Regular.woff2`) +const FONT_URLS = ['CN', 'KR'].map(l => `https://cdn.jsdelivr.net/npm/@librescore/fonts@${depVers['@librescore/fonts']}/SourceHanSans${l}.min.woff2`) const SF3_URL = `https://cdn.jsdelivr.net/npm/@librescore/sf3@${depVers['@librescore/sf3']}/FluidR3Mono_GM.sf3` const SOUND_FONT_LOADED = Symbol('SoundFont loaded')