load dropins from local folder

This commit is contained in:
Azgaar 2021-09-02 20:52:03 +03:00
parent f7d72c2255
commit ae75f93174
4 changed files with 17 additions and 14 deletions

View file

@ -281,7 +281,7 @@ async function getMapURL(type, options = {}) {
const fontsToLoad = usedFonts.filter(font => !webSafe.includes(font));
if (fontsToLoad.length) {
const url = "https://fonts.googleapis.com/css?family=" + fontsToLoad.join("|");
const fontStyle = await GFontToDataURI(url);
const fontStyle = await convertFontToDataURI(url);
if (fontStyle) clone.select("defs").append("style").text(fontStyle.join("\n"));
}