From f3f6817e78e453482131ed85c902a82f14f3135a Mon Sep 17 00:00:00 2001 From: 4silvertooth Date: Tue, 16 Feb 2021 17:26:09 +0530 Subject: [PATCH] fix: usage example fixed to use null in encoding --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f2c4204..e173d58 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ event click $(button) { page.setSize(page.SIZE_A4, page.PORTRAIT); const h = page.getHeight(); - const font = Doc.getFont("Helvetica", ""); + const font = Doc.getFont("Helvetica", null); page.setFontAndSize(font, 12); page.beginText(); @@ -85,7 +85,7 @@ event click $(button) { page.setSize(page.SIZE_A4, page.PORTRAIT); const h = page.getHeight(); - const font = Doc.getFont("Helvetica", ""); + const font = Doc.getFont("Helvetica", null); page.setFontAndSize(font, 12); page.beginText();