Currently in the process of upgrading my MUI5 application from Next 12 to Next 13 and experimenting with integrating next/font
.
In my previous Next 12 version, I utilized two Google fonts - 'Rubik'
and 'Ephesis'
which were included in the <head>
section, making them available globally for use in CSS styling.
For instance, I could simply use
<Typography fontFamily='Ephesis' children='Hi' />
and it would display correctly.
However, now that I am using next/font
, I'm unsure how to incorporate both font families globally so that components like <Typography>
mentioned above continue to work.
Any advice or suggestions would be greatly appreciated.