Skip to content

Commit

Permalink
fix: download selfhost fonts script (toeverything#6970)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed May 17, 2024
1 parent 35a6cf6 commit b89e088
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/download-blocksuite-fonts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { join } from 'node:path';
import { fileURLToPath } from 'node:url';

// eslint-disable-next-line @typescript-eslint/no-restricted-imports
import { CanvasTextFonts } from '@blocksuite/blocks/dist/surface-block/consts.js';
import { AffineCanvasTextFonts } from '@blocksuite/blocks/dist/surface-block/consts.js';

const fontPath = join(
fileURLToPath(import.meta.url),
Expand All @@ -17,7 +17,7 @@ const fontPath = join(
);

await Promise.all(
CanvasTextFonts.map(async ({ url }) => {
AffineCanvasTextFonts.map(async ({ url }) => {
const buffer = await fetch(url).then(res =>
res.arrayBuffer().then(res => Buffer.from(res))
);
Expand Down

0 comments on commit b89e088

Please sign in to comment.