mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
load dropins from local folder
This commit is contained in:
parent
f7d72c2255
commit
ae75f93174
4 changed files with 17 additions and 14 deletions
|
|
@ -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"));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue