Skip to content

Commit

Permalink
🔧 Add ac font + Fixed missing glyphs
Browse files Browse the repository at this point in the history
  • Loading branch information
moonspam committed Sep 15, 2022
1 parent 0d051f9 commit 3ededad
Show file tree
Hide file tree
Showing 35 changed files with 69 additions and 8 deletions.
Binary file added NanumSquareAcB.eot
Binary file not shown.
Binary file added NanumSquareAcB.ttf
Binary file not shown.
Binary file added NanumSquareAcB.woff
Binary file not shown.
Binary file added NanumSquareAcB.woff2
Binary file not shown.
Binary file added NanumSquareAcEB.eot
Binary file not shown.
Binary file added NanumSquareAcEB.ttf
Binary file not shown.
Binary file added NanumSquareAcEB.woff
Binary file not shown.
Binary file added NanumSquareAcEB.woff2
Binary file not shown.
Binary file added NanumSquareAcL.eot
Binary file not shown.
Binary file added NanumSquareAcL.ttf
Binary file not shown.
Binary file added NanumSquareAcL.woff
Binary file not shown.
Binary file added NanumSquareAcL.woff2
Binary file not shown.
Binary file added NanumSquareAcR.eot
Binary file not shown.
Binary file added NanumSquareAcR.ttf
Binary file not shown.
Binary file added NanumSquareAcR.woff
Binary file not shown.
Binary file added NanumSquareAcR.woff2
Binary file not shown.
Binary file modified NanumSquareB.eot
Binary file not shown.
Binary file modified NanumSquareB.ttf
Binary file not shown.
Binary file modified NanumSquareB.woff
Binary file not shown.
Binary file added NanumSquareB.woff2
Binary file not shown.
Binary file modified NanumSquareEB.eot
Binary file not shown.
Binary file modified NanumSquareEB.ttf
Binary file not shown.
Binary file modified NanumSquareEB.woff
Binary file not shown.
Binary file added NanumSquareEB.woff2
Binary file not shown.
Binary file modified NanumSquareL.eot
Binary file not shown.
Binary file modified NanumSquareL.ttf
Binary file not shown.
Binary file modified NanumSquareL.woff
Binary file not shown.
Binary file added NanumSquareL.woff2
Binary file not shown.
Binary file modified NanumSquareR.eot
Binary file not shown.
Binary file modified NanumSquareR.ttf
Binary file not shown.
Binary file modified NanumSquareR.woff
Binary file not shown.
Binary file added NanumSquareR.woff2
Binary file not shown.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,35 @@
# NanumSquare

> 반듯한 직선으로 제목에 잘 어울리며 모바일에서도 잘 보이는 글꼴입니다. 꼭 필요한 2,350자만을 추려 용량을 가볍게 줄였고 웹 환경에서 보다 편리하게 사용 가능합니다. http://hangeul.naver.com/2016/nanum
나눔스퀘어 웹폰트 입니다.
나눔스퀘어 웹폰트 입니다.
[Demo](https://htmlpreview.github.io/?https://github.com/moonspam/NanumSquare/blob/master/index.html)
(위: 기본, 아래: ac)

## 옵션
Regular(400), Bold(700), Extra Bold(800), Light(300) 지원됩니다.

Regular(400), Bold(700), Extra Bold(800), Light(300) 지원됩니다. + ac(R, B, EB, L) 추가

## 사용방법

### link 방식 (권장)

<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/moonspam/[email protected]/nanumsquare.css">

### import 방식

@import url(https://cdn.jsdelivr.net/gh/moonspam/[email protected]/nanumsquare.css);

## 적용
### css (예)

### css 적용 예

body { font-family: 나눔스퀘어, 'NanumSquare', sans-serif; }
.normal { font-weight: 400 }
.bold { font-weight: 700 }
.bolder { font-weight: 800 }
.light { font-weight: 300 }

### ac 적용 예

body { font-family: 나눔스퀘어_ac, 'NanumSquareAc', sans-serif; }
15 changes: 10 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,22 @@
p{text-align:center}
p strong.extra{font-weight: 800}
p.light{font-weight: 300}
</style>
.ac{margin-top:-1em;font-family: 나눔스퀘어_ac, 'NanumSquareAc', sans-serif !important}
</style>
</head>

<body>

<div>
<div>
<p>기회는 일어나는 것이 아니라 만들어내는 것이다.</p>
<p><strong>기회는 일어나는 것이 아니라 만들어내는 것이다.</strong></p>
<p><strong class="extra">기회는 일어나는 것이 아니라 만들어내는 것이다.</strong></p>
<p class="light">기회는 일어나는 것이 아니라 만들어내는 것이다.</p>
<p>기회는 일어나는 것이 아니라 만들어내는 것이다. (벭)</p>
<p class="ac">기회는 일어나는 것이 아니라 만들어내는 것이다. (벭)</p>
<p><strong>기회는 일어나는 것이 아니라 만들어내는 것이다. (벭)</strong></p>
<p class="ac"><strong>기회는 일어나는 것이 아니라 만들어내는 것이다. (벭)</strong></p>
<p><strong class="extra">기회는 일어나는 것이 아니라 만들어내는 것이다. (벭)</strong></p>
<p class="ac"><strong class="extra">기회는 일어나는 것이 아니라 만들어내는 것이다. (벭)</strong></p>
<p class="light">기회는 일어나는 것이 아니라 만들어내는 것이다. (벭)</p>
<p class="ac light">기회는 일어나는 것이 아니라 만들어내는 것이다. (벭)</p>
</div>
</div>

Expand Down
45 changes: 45 additions & 0 deletions nanumsquare.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
src: url(NanumSquareR.eot);
src: local('☺'),
url(NanumSquareR.eot?#iefix) format('embedded-opentype'),
url(NanumSquareR.woff2) format('woff2'),
url(NanumSquareR.woff) format('woff'),
url(NanumSquareR.ttf) format('truetype');
}
Expand All @@ -13,6 +14,7 @@
src: url(NanumSquareB.eot);
src: local('☺'),
url(NanumSquareB.eot?#iefix) format('embedded-opentype'),
url(NanumSquareB.woff2) format('woff2'),
url(NanumSquareB.woff) format('woff'),
url(NanumSquareB.ttf) format('truetype');
}
Expand All @@ -22,6 +24,7 @@
src: url(NanumSquareEB.eot);
src: local('☺'),
url(NanumSquareEB.eot?#iefix) format('embedded-opentype'),
url(NanumSquareEB.woff2) format('woff2'),
url(NanumSquareEB.woff) format('woff'),
url(NanumSquareEB.ttf) format('truetype');
}
Expand All @@ -31,6 +34,48 @@
src: url(NanumSquareL.eot);
src: local('☺'),
url(NanumSquareL.eot?#iefix) format('embedded-opentype'),
url(NanumSquareL.woff2) format('woff2'),
url(NanumSquareL.woff) format('woff'),
url(NanumSquareL.ttf) format('truetype');
}
/* AC */
@font-face {
font-family: 'NanumSquareAc';
font-weight: 400;
src: url(NanumSquareAcR.eot);
src: local('☺'),
url(NanumSquareAcR.eot?#iefix) format('embedded-opentype'),
url(NanumSquareAcR.woff2) format('woff2'),
url(NanumSquareAcR.woff) format('woff'),
url(NanumSquareAcR.ttf) format('truetype');
}
@font-face {
font-family: 'NanumSquareAc';
font-weight: 700;
src: url(NanumSquareAcB.eot);
src: local('☺'),
url(NanumSquareAcB.eot?#iefix) format('embedded-opentype'),
url(NanumSquareAcB.woff2) format('woff2'),
url(NanumSquareAcB.woff) format('woff'),
url(NanumSquareAcB.ttf) format('truetype');
}
@font-face {
font-family: 'NanumSquareAc';
font-weight: 800;
src: url(NanumSquareAcEB.eot);
src: local('☺'),
url(NanumSquareAcEB.eot?#iefix) format('embedded-opentype'),
url(NanumSquareAcEB.woff2) format('woff2'),
url(NanumSquareAcEB.woff) format('woff'),
url(NanumSquareAcEB.ttf) format('truetype');
}
@font-face {
font-family: 'NanumSquareAc';
font-weight: 300;
src: url(NanumSquareAcL.eot);
src: local('☺'),
url(NanumSquareAcL.eot?#iefix) format('embedded-opentype'),
url(NanumSquareAcL.woff2) format('woff2'),
url(NanumSquareAcL.woff) format('woff'),
url(NanumSquareAcL.ttf) format('truetype');
}

0 comments on commit 3ededad

Please sign in to comment.