X-Git-Url: https://git.kianting.info/?a=blobdiff_plain;f=tests%2FpdfManipulation.ts;h=9a1d75f9153738ba1c65aadfe5b028be907ca55b;hb=c3dc58d74afa6b298d84bad90d63c027a32a954a;hp=6daaa1445a4bd49f39e93ac771235f83885912ed;hpb=796e0c20c767e214b104fa3d17e754ce58da6e73;p=clo diff --git a/tests/pdfManipulation.ts b/tests/pdfManipulation.ts index 6daaa14..9a1d75f 100644 --- a/tests/pdfManipulation.ts +++ b/tests/pdfManipulation.ts @@ -6,21 +6,21 @@ let hanziFont = { family : "Noto Sans CJK TC", size : 12, textWeight : canva.TextWeight.REGULAR, - textStyle : canva.TextStyle.ITALIC, + fontStyle : canva.FontStyle.ITALIC, } let romanFont = { family : "FreeSans", size : 15, textWeight : canva.TextWeight.BOLD, - textStyle : canva.TextStyle.ITALIC, + fontStyle : canva.FontStyle.ITALIC, } let arabicFont = { family : "noto sans arabic", size : 16, textWeight : canva.TextWeight.REGULAR, - textStyle : canva.TextStyle.NORMAL, + fontStyle : canva.FontStyle.NORMAL, } @@ -32,7 +32,7 @@ async function foo (){ let clo = await { mainText : ["123 一隻貓跑過來"], - mainFontStyle : hanziFont, + mainTextStyle : hanziFont, PDFCanvas : doc, }