๐Ÿ“ฆ plttn / font-repro

โ˜… 0 stars โ‘‚ 1 forks ๐Ÿ‘ 0 watching
๐Ÿ“ฅ Clone https://github.com/plttn/font-repro.git
HTTPS git clone https://github.com/plttn/font-repro.git
SSH git clone git@github.com:plttn/font-repro.git
CLI gh repo clone plttn/font-repro
Jack Platten Jack Platten Update README with preflight reproduction steps b0471d6 2 months ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .vscode
๐Ÿ“ public
๐Ÿ“ src
๐Ÿ“„ .gitignore
๐Ÿ“„ astro.config.mjs
๐Ÿ“„ package.json
๐Ÿ“„ pnpm-lock.yaml
๐Ÿ“„ README.md
๐Ÿ“„ tsconfig.json
๐Ÿ“„ README.md

Astro Starter Kit: Minimal

pnpm create astro@latest -- --template minimal

Reproduction steps

Preflight

Run pnpm/npm astro preview. This will definitely fail, but fonts need to be copied to dist.

Reproduction

In one terminal window, run pnpm/npm astro preview. This is so that the URL will resolve properly.

In another window, run pnpm/npm astro build. This will attempt to build the route og.png.ts which you should expect to error out on

Unsupported OpenType signature wOF2
  Stack trace:
    at Object.parseBuffer [as parse] (/Users/jack/Developer/font-repro/node_modules/.pnpm/@shuding+opentype.js@1.4.0-beta.0/node_modules/@shuding/opentype.js/dist/opentype.js:11450:18)