Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] - 다운로드 된 폰트를 불러오지 않는 문제 해결 #429

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 19 additions & 18 deletions frontend/src/styles/globalStyle.ts
Original file line number Diff line number Diff line change
@@ -1,85 +1,86 @@
import { css } from "@emotion/react";

import pretendard_black from "../assets/fonts/woff-subset/Pretendard-Black.subset.woff";
import pretendard_bold from "../assets/fonts/woff-subset/Pretendard-Bold.subset.woff";
import pretendard_extra_bold from "../assets/fonts/woff-subset/Pretendard-ExtraBold.subset.woff";
import pretendard_extra_light from "../assets/fonts/woff-subset/Pretendard-ExtraLight.subset.woff";
import pretendard_light from "../assets/fonts/woff-subset/Pretendard-Light.subset.woff";
import pretendard_medium from "../assets/fonts/woff-subset/Pretendard-Medium.subset.woff";
import pretendard_regular from "../assets/fonts/woff-subset/Pretendard-Regular.subset.woff";
import pretendard_semi_bold from "../assets/fonts/woff-subset/Pretendard-SemiBold.subset.woff";
import pretendard_thin from "../assets/fonts/woff-subset/Pretendard-Thin.subset.woff";

export const globalStyle = css`
@font-face {
font-family: Pretendard;

font-weight: 900;
font-display: swap;
src: local("Pretendard") url("@assets/fonts/woff-subset/Pretendard-Black.subset.woff")
format("woff");
src: local("Pretendard") url(${pretendard_black}) format("woff");
}

@font-face {
font-family: Pretendard;

font-weight: 800;
font-display: swap;
src: local("Pretendard") url("@assets/fonts/woff-subset/Pretendard-ExtraBold.subset.woff")
format("woff");
src: local("Pretendard") url(${pretendard_extra_bold}) format("woff");
}

@font-face {
font-family: Pretendard;

font-weight: 700;
font-display: swap;
src: local("Pretendard") url("@assets/fonts/woff-subset/Pretendard-Bold.subset.woff")
format("woff");
src: local("Pretendard") url(${pretendard_bold}) format("woff");
}

@font-face {
font-family: Pretendard;

font-weight: 600;
font-display: swap;
src: local("Pretendard") url("@assets/fonts/woff-subset/Pretendard-SemiBold.subset.woff")
format("woff");
src: local("Pretendard") url(${pretendard_semi_bold}) format("woff");
}

@font-face {
font-family: Pretendard;

font-weight: 500;
font-display: swap;
src: local("Pretendard") url("@assets/fonts/woff-subset/Pretendard-Medium.subset.woff")
format("woff");
src: local("Pretendard") url(${pretendard_medium}) format("woff");
}

@font-face {
font-family: Pretendard;

font-weight: 400;
font-display: swap;
src: local("Pretendard") url("/@assets/fonts/woff-subset/Pretendard-Regular.subset.woff")
format("woff");
src: local("Pretendard") url(${pretendard_regular}) format("woff");
}

@font-face {
font-family: Pretendard;

font-weight: 300;
font-display: swap;
src: local("Pretendard") url("@assets/fonts/woff-subset/Pretendard-Light.subset.woff")
format("woff");
src: local("Pretendard") url(${pretendard_light}) format("woff");
}

@font-face {
font-family: Pretendard;

font-weight: 200;
font-display: swap;
src: local("Pretendard") url("@assets/fonts/woff-subset/Pretendard-ExtraLight.subset.woff")
format("woff");
src: local("Pretendard") url(${pretendard_extra_light}) format("woff");
}

@font-face {
font-family: Pretendard;

font-weight: 100;
font-display: swap;
src: local("Pretendard") url("@assets/fonts/woff-subset/Pretendard-Thin.subset.woff")
format("woff");
src: local("Pretendard") url(${pretendard_thin}) format("woff");
}

html,
Expand Down
Loading