Skip to content

[material-ui][examples] Custom fonts not changing during the initial rendering #39797

Open
@na-zi-ya

Description

@na-zi-ya

I'm facing an issue with the fonts in my Next.js 14 project with MUIv5 n TypeScript.

I've used the following code to import and set up fonts...,

image

but the fonts are not changing during the initial rendering. However, after the initial rendering, the fonts switch to the customized ones. All other MUI styles are working fine. I followed this (' https://github.com/mui/material-ui/blob/master/examples/material-ui-nextjs-ts/src/components/ThemeRegistry/theme.ts ') for the setup. Can you help me identify what might be causing this font issue..??

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions