Skip to content

Commit

Permalink
Remove Noto Color Emoji font
Browse files Browse the repository at this point in the history
  • Loading branch information
crizin committed Nov 28, 2023
1 parent 2f312f3 commit e5cdd31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/layout.module.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@use '@/app/variables.scss' as var;

.font {
font-family: var(--font-noto-sans-kr), var(--font-noto-color-emoji), sans-serif;
font-family: var(--font-noto-sans-kr), sans-serif;
}

.container {
Expand Down
7 changes: 3 additions & 4 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@ import { getBoards } from '@/app/_lib/client';
import { config as faConfig } from '@fortawesome/fontawesome-svg-core';
import '@fortawesome/fontawesome-svg-core/styles.css';
import { Metadata, Viewport } from 'next';
import { Noto_Color_Emoji, Noto_Sans_KR } from 'next/font/google';
import { Noto_Sans_KR } from 'next/font/google';
import { cookies, headers } from 'next/headers';
import Script from 'next/script';
import 'normalize.css';
import { ReactNode } from 'react';
import './globals.scss';
import styles from './layout.module.scss';

const fontEmoji = Noto_Color_Emoji({ subsets: ['emoji'], weight: ['400'], variable: '--font-noto-color-emoji' });
const fontText = Noto_Sans_KR({ subsets: ['latin'], weight: ['400', '700'], variable: '--font-noto-sans-kr' });
const font = Noto_Sans_KR({ subsets: ['latin'], weight: ['400', '700'], variable: '--font-noto-sans-kr' });

faConfig.autoAddCss = false;

Expand Down Expand Up @@ -69,7 +68,7 @@ export default async function RootLayout({ children }: { children: ReactNode })
</>
)}
</head>
<body className={`${styles.font} ${fontText.variable} ${fontEmoji.variable}`}>
<body className={`${styles.font} ${font.variable}`}>
<GlobalVariableContextProvider useNewWindow={useNewWindow}>
<div className={styles.container}>
<div className={styles.header}>
Expand Down

0 comments on commit e5cdd31

Please sign in to comment.