From dbd670c8a18307dcb3d97e412304ed7d6a905cbb Mon Sep 17 00:00:00 2001 From: Kshitij Anurag <230598819+kshitijanurag@users.noreply.github.com> Date: Thu, 28 May 2026 22:38:14 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#75056=20[opentype.?= =?UTF-8?q?js]:=20add=20`opts`=20in=20`parse()`=20function=20by=20@kshitij?= =?UTF-8?q?anurag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/opentype.js/index.d.ts | 2 +- types/opentype.js/opentype.js-tests.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/opentype.js/index.d.ts b/types/opentype.js/index.d.ts index 23753330bf6530..c13ffe466ddfc8 100644 --- a/types/opentype.js/index.d.ts +++ b/types/opentype.js/index.d.ts @@ -370,4 +370,4 @@ export function loadSync( }, ): Font; -export function parse(buffer: any): Font; +export function parse(buffer: any, opt?: { lowMemory: boolean }): Font; diff --git a/types/opentype.js/opentype.js-tests.ts b/types/opentype.js/opentype.js-tests.ts index 8dc0fb5593f463..3450b105cb1a40 100644 --- a/types/opentype.js/opentype.js-tests.ts +++ b/types/opentype.js/opentype.js-tests.ts @@ -15,7 +15,7 @@ load("fonts/Roboto-Black.ttf", (err, font) => { } }); -let font = parse(new ArrayBuffer(0)); +let font = parse(new ArrayBuffer(0), { lowMemory: true }); font = loadSync("fonts/Roboto-Black.ttf", { lowMemory: true }); const notdefGlyph = new Glyph({