Skip to content

Commit

Permalink
⚙ Setting(#37): GlobalFont 삭제 및 subset 폰트 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
bluetree7878 committed Nov 6, 2024
1 parent e8cdc1e commit c726cbf
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 20 deletions.
5 changes: 5 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./src/style/index.css" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/fonts-archive/Maplestory/subsets/Maplestory-dynamic-subset.css"
type="text/css"
/>
<title>CokoEdu</title>
</head>
<body>
Expand Down
2 changes: 0 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
import { ThemeProvider } from 'styled-components';
import { media } from './style/media';
import GlobalStyle from './style/GlobalStyle';
import GlobalFont from './style/GlobalFont';

function App() {
const queryClient = new QueryClient({
Expand All @@ -20,7 +19,6 @@ function App() {
<QueryClientProvider client={queryClient}>
<ThemeProvider theme={media}>
<GlobalStyle />
<GlobalFont />
<Router />
</ThemeProvider>
<ReactQueryDevtools initialIsOpen={false} />
Expand Down
Binary file removed src/fonts/NexonMaplestoryBold.woff2
Binary file not shown.
Binary file removed src/fonts/NexonMaplestoryLight.woff2
Binary file not shown.
17 changes: 0 additions & 17 deletions src/style/GlobalFont.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/style/GlobalStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createGlobalStyle } from 'styled-components';

const GlobalStyle = createGlobalStyle`
*, *::before, *::after {
font-family : "MaplestoryLight";
font-family : Maplestory;
margin: 0;
padding: 0;
box-sizing: border-box;
Expand Down

0 comments on commit c726cbf

Please sign in to comment.