Skip to content

Commit

Permalink
Update font imports and next.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
walnuts1018 committed Jan 26, 2024
1 parent 847234f commit 48fcb03
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const nextConfig = {
images: {
formats: ['image/avif', 'image/webp'],
},
optimizeFonts: false,
}

module.exports = nextConfig
Binary file added src/app/font/NotoSansCJKjp-Black.woff2
Binary file not shown.
Binary file added src/app/font/NotoSansCJKjp-Bold.woff2
Binary file not shown.
Binary file added src/app/font/NotoSansCJKjp-DemiLight.woff2
Binary file not shown.
Binary file added src/app/font/NotoSansCJKjp-Regular.woff2
Binary file not shown.
8 changes: 5 additions & 3 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Metadata } from 'next'
import { Nunito, Noto_Sans_JP } from 'next/font/google'
import { Nunito } from 'next/font/google'
import localFont from 'next/font/local'
import './globals.css'
import AppleTouchIcon from '../../public/favicons/apple-touch-icon.png'
import Favicon16 from '../../public/favicons/favicon-16x16.png'
Expand All @@ -16,9 +17,10 @@ const NunitoFont = Nunito({
variable: '--font-Nunito',
})

const NotoFont = Noto_Sans_JP({
subsets: ['latin'],
const NotoFont = localFont({
src: './font/NotoSansCJKjp-DemiLight.woff2',
variable: '--font-Noto',
display: 'swap',
})

export const metadata: Metadata = {
Expand Down

0 comments on commit 48fcb03

Please sign in to comment.