@pixldocs/canvas-renderer 0.3.11 → 0.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10462,9 +10462,8 @@ async function loadGoogleFontCSS(rawFontFamily) {
|
|
|
10462
10462
|
loadedFonts.add(fontFamily);
|
|
10463
10463
|
return;
|
|
10464
10464
|
}
|
|
10465
|
-
const weights = "100;200;300;400;500;600;700;800;900";
|
|
10466
10465
|
const encoded = encodeURIComponent(fontFamily);
|
|
10467
|
-
const url = `https://fonts.googleapis.com/
|
|
10466
|
+
const url = `https://fonts.googleapis.com/css?family=${encoded}:300,400,500,600,700&display=swap`;
|
|
10468
10467
|
const link = document.createElement("link");
|
|
10469
10468
|
link.rel = "stylesheet";
|
|
10470
10469
|
link.href = url;
|