Open
Description
hello - I'm using Node 23 with next/font, and I've tracked down an issue with fonts not loading to this package.
var fontkit = require("fontkit");
var font = fontkit.openSync("Geist-Black.ttf");
Gives this error:
Error: Unknown font format
The error is "RangeError: Offset is outside the bounds of the DataView" and being thrown here:
Line 49 in fbf3b9e
Which looks to be because Node 23 now throws an error when reading a buffer outside bounds:
Metadata
Metadata
Assignees
Labels
No labels
Activity