From 5954ca1bb710f4b00709a358d66fc7b8c09eb069 Mon Sep 17 00:00:00 2001 From: Jobin <425605679@qq.com> Date: Thu, 3 Aug 2023 15:03:20 +0800 Subject: [PATCH] fix: Fix `fontEmbedCSS ` incorrect sizing --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 782d2525..20a2b36c 100644 --- a/README.md +++ b/README.md @@ -274,9 +274,9 @@ instead using this value. This is useful when combined with `getFontEmbedCSS()` embedding process a single time across multiple calls to library functions. ```javascript -const fontEmbedCss = await htmlToImage.getFontEmbedCSS(element1); -html2Image.toSVG(element1, { fontEmbedCss }); -html2Image.toSVG(element2, { fontEmbedCss }); +const fontEmbedCSS = await htmlToImage.getFontEmbedCSS(element1); +html2Image.toSVG(element1, { fontEmbedCSS }); +html2Image.toSVG(element2, { fontEmbedCSS }); ``` ### skipAutoScale