My preference is to use the font style slnt -8 for Inter.
When importing with a URL through SCSS, I am able to specify slnt -8 as follows:
@import url("https://fonts.googleapis.com/css2?family=Inter:slnt,wght@-8,100..900&display=swap");
Unfortunately, when using next/font/google provided by NextJS, it does not allow for specifying the slant of the font.
I prefer to use next/font since it self-hosts the Google-provided fonts. However, just italicizing the font leans too much for my liking.
I have attempted to specify the slant during import in different ways:
const inter = Inter({ subsets: ["latin"], style: ["normal", { slant: -8 }]});
or
const inter = Inter({ subsets: ["latin"], style: ["normal", "slnt:-8"]});
or
const inter = Inter({ subsets: ["latin"], style: ["normal"]}, slant: "-8");
However, all of these approaches either result in TypeScript errors or fail to load properly.