Posted 10 February 2026, 3:44 am EST
I am failing to register a new font using react. The error i get is
Error registering fonts: TypeError: Cannot read properties of undefined (reading ‘postscriptName’)
From this line of code
// Font registration for custom fonts
Core?.FontStore.registerFonts(“/font/fontsConfig.json”).then(() => {
console.log(“Fonts registered successfully”);
}).catch(error => {
console.error(“Error registering fonts:”, error);
});

