refactor: use named import for @jsse/pbfont
Signed-off-by: prashis <prashis.meshram@hotmail.com>
This commit is contained in:
parent
c420bdeff5
commit
9101b2c87d
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue