This commit is contained in:
zsviczian
2024-06-09 16:34:48 +02:00
parent 94fbac38bf
commit dfbd385de7
10 changed files with 55 additions and 8 deletions

View File

@@ -250,11 +250,12 @@ const _getSVGNative = async ({filenameParts,theme,cacheReady,containerElement,fi
return null;
}
//cache SVG should have the width and height parameters and not the embedded font
cacheReady && imageCache.addImageToCache(cacheKey,"", svg);
svg = embedFontsInSVG(svg, plugin, true);
svg.removeAttribute("width");
svg.removeAttribute("height");
containerElement.append(svg);
cacheReady && imageCache.addImageToCache(cacheKey,"", svg);
return containerElement;
}