Skip to content

Commit

Permalink
폰트 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ruby-textark committed Oct 8, 2022
1 parent f65b5dc commit 5ab66a6
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<title>erars-electron</title>
</head>
<body>
<div id="root"></div>
Expand Down
Binary file added public/MonoplexKR-Regular.ttf
Binary file not shown.
Binary file added public/NanumGothicCoding-Bold.ttf
Binary file not shown.
Binary file added public/NanumGothicCoding.ttf
Binary file not shown.
22 changes: 22 additions & 0 deletions src/font.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
@font-face {
font-family: D2Coding;
src: url("/D2Coding-Ver1.3.2-20180524.ttc");
}

@font-face {
font-family: NanumGothicCoding;
font-weight: normal;
src: url("/NanumGothicCoding.ttf");
}

@font-face {
font-family: NanumGothicCoding;
font-weight: bold;
src: url("/NanumGothicCoding-Bold.ttf");
}

@font-face {
font-family: Monoplex;
font-weight: bold;
src: url("/MonoplexKR-Regular.ttf");
}
5 changes: 1 addition & 4 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
@font-face {
font-family: D2Coding;
src: url("/D2Coding-Ver1.3.2-20180524.ttc");
}
@import url("./font.css");

:root {
font-size: 16px;
Expand Down

0 comments on commit 5ab66a6

Please sign in to comment.