Remove Promise.all from font loading

This commit is contained in:
Sam Becker 2025-03-13 00:23:43 -05:00
parent 073dee9efd
commit f4447b3474

View File

@ -11,10 +11,9 @@ const getFontData = async (fontPath: string) =>
fs.readFileSync(path.join(cwd(), fontPath));
export const getIBMPlexMono = async () => {
const [regular, medium] = await Promise.all([
getFontData(FONT_IBM_PLEX_MONO_PATH_REGULAR),
getFontData(FONT_IBM_PLEX_MONO_PATH_MEDIUM),
]);
const regular = await getFontData(FONT_IBM_PLEX_MONO_PATH_REGULAR);
const medium = await getFontData(FONT_IBM_PLEX_MONO_PATH_MEDIUM);
return {
fontFamily: FONT_IBM_PLEX_MONO_FAMILY,
fonts: [{