refactor: use named import for @jsse/pbfont

Signed-off-by: prashis <prashis.meshram@hotmail.com>
This commit is contained in:
prashis 2024-06-28 23:12:01 +05:30
parent c420bdeff5
commit 9101b2c87d
No known key found for this signature in database
GPG key ID: 68DD8478F86DEA91

View file

@ -4,7 +4,7 @@ import path from 'path';
import fsPromises from 'fs/promises'; import fsPromises from 'fs/promises';
import fs, { existsSync } from 'node:fs'; import fs, { existsSync } from 'node:fs';
import clone from 'clone'; import clone from 'clone';
import * as glyphCompose from '@jsse/pbfont'; import { combine } from '@jsse/pbfont';
/** /**
* Restrict user input to an allowed set of options. * Restrict user input to an allowed set of options.
@ -213,7 +213,7 @@ export const getFontsPbf = async (
); );
} }
const combined = glyphCompose.combine(await Promise.all(queue), names); const combined = combine(await Promise.all(queue), names);
return Buffer.from(combined.buffer, 0, combined.buffer.length); return Buffer.from(combined.buffer, 0, combined.buffer.length);
}; };