I'm getting this error code when trying to load a local font to my PDF project.
I've followed the documentation and tried several ways to import the font.
import DinPro from "../../../../assets/fonts/DinProFont/DINPro-Medium_13936.ttf";
Font.register({
family: "DINPro",
format: "truetype",
src: DinPro,
fontStyle: "normal",
fontWeight: "normal"
});
I'm using the latest version.
"@react-pdf/renderer": "^3.0.1",