showing results for - "adding font to next js app"
Anderson
18 Jun 2017
1
2import Document, { Html, Head, Main, NextScript } from 'next/document'
3
4class MyDocument extends Document {
5  static async getInitialProps(ctx) {
6    const initialProps = await Document.getInitialProps(ctx)
7    return { ...initialProps }
8  }
9
10  render() {
11    return (
12      <Html>
13        <Head>
14          <link href="https://fonts.googleapis.com/css2?family=Lobster&display=swap" rel="stylesheet" />
15        </Head>
16        <body>
17          <Main />
18          <NextScript />
19        </body>
20      </Html>
21    )
22  }
23}
24
25export default MyDocument
26  
27
queries leading to this page
how to link fonts in a next js projectadd font in nextjscustom fonts nextjsload font in next js appfont next js customhow to import fonts in next jssent default font on next jshow to add font to next jsnext js adding font to projectnext js export font filesnext js custom font woff2next js default fonthow to add fonts in nextjshow to import fonts to next jsadd font with nextjshow to install font in next jshow to add fonts in next jsadd font to next jsnext js include font fileimport font next jsimport font in nextjscustom font in nextjsconfigure fonts nextjsadd fonts in nextjsimport font google nextjshow to use downloaded font in nextjs appimport font nextjsnext js add font familyhow to import custom fonts to next jsbest fonts for next jshow to change next js fontadd font to nextjsload font in next js app csshow to inlcude fonts to next js nextjs custom fontsadd fonts nextjshow to add font in nextjsadobe fonts next jsinstall font to nextjsadd font nextjsadding custom font nextjsadd font globally to next jshow to import fonts next jsadding font in nextjschange fonts next jsusing downloaded fonts nextjsadd font to next js apphow to use font wesome in next jsset custom font nextjsnextjs import fonts in cssimport fonts nexthow to import fonts into a next js appnext js load fonts and useadding font in next jsdocument js font in next jsadd font locally nextjsadd custom font to nextjsadd fonts to nextjsfonts in next jsnextjs custom fontimport font file in next jsadd custom fonts in nextadding external fonts in nextjscustom font nextjs typescripthow to install new fonts in nextjsadd custom font in nextjsimport fonts in next jsnext js custom fontadd font family in nextjsnextjs add fontshow to add custom font in next jsadd fonts to next jsadd fonts in next jsadding font to next js app