Skip to content

Commit 56e5d0d

Browse files
committed
Apply 'Pretendard' as the default font
- The existing sans-serif default fonts and Lato and Source Sans Pro fonts are replaced by the system default fonts because they do not support Korean and Japanese characters, causing font uniformity to be disrupted. - In the case of Hangul, the system default Hangul font and the romanized font are slightly different in size, resulting in an unnatural appearance. - In the case of Japanese characters, some kanji characters were not displayed properly and were broken, or different fonts were applied, resulting in a disparate and awkward appearance. - Therefore, 'Pretendard' is applied as the default sans-serif font and fallback font for Korean and Japanese characters.
1 parent cdd985b commit 56e5d0d

File tree

2 files changed

+114
-0
lines changed

2 files changed

+114
-0
lines changed

_includes/head.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
{% seo title=false %}
2525
{%- endcapture -%}
2626

27+
<!-- CDN Preconnect -->
28+
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin="anonymous">
29+
2730
<!-- Setup Open Graph image -->
2831

2932
{% if page.image %}
@@ -89,6 +92,12 @@
8992

9093
<!-- Web Font -->
9194
<link rel="stylesheet" href="{{ site.data.origin[type].webfonts | relative_url }}">
95+
<link rel="preload" as="style" crossorigin="anonymous" href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/variable/pretendardvariable-std-dynamic-subset.min.css">
96+
<link rel="preload" as="style" crossorigin="anonymous" href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/variable/pretendardvariable-dynamic-subset.min.css">
97+
<link rel="preload" as="style" crossorigin="anonymous" href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/variable/pretendardvariable-jp-dynamic-subset.min.css">
98+
<link rel="stylesheet" as="style" type="text/css" crossorigin href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/variable/pretendardvariable-std-dynamic-subset.min.css" />
99+
<link rel="stylesheet" as="style" type="text/css" crossorigin href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/variable/pretendardvariable-dynamic-subset.min.css" />
100+
<link rel="stylesheet" as="style" type="text/css" crossorigin href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/variable/pretendardvariable-jp-dynamic-subset.min.css" />
92101

93102
<!-- Font Awesome Icons -->
94103
<link rel="stylesheet" href="{{ site.data.origin[type].fontawesome.css | relative_url }}">
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
---
2+
---
3+
4+
@import 'main
5+
{%- if jekyll.environment == 'production' -%}
6+
.bundle
7+
{%- endif -%}
8+
';
9+
10+
/* append your custom style below */
11+
12+
:root {
13+
--bs-success:#198754;
14+
--bs-danger:#dc3545;
15+
// --bs-font-sans-serif:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
16+
--bs-font-sans-serif:"Pretendard Std Variable","Pretendard JP Variable","Pretendard Variable",-apple-system,BlinkMacSystemFont,system-ui,Roboto,"Helvetica Neue","Segoe UI","Noto Sans","Liberation Sans",Arial,"Hiragino Sans","Apple SD Gothic Neo",Meiryo,"Noto Sans JP","Noto Sans KR","Malgun Gothic",Osaka,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
17+
// 맑은 고딕/Segoe UI의 경우, 국/영문을 한 줄에 혼용 시 영문에 비해 국문 폰트의 크기가 약간 더 크기 때문에 상단 정렬이 맞지 않아 심미성이 저해됨 (https://www.samsungsds.com/kr/insights/enterprise_ux_fonts.html 참고)
18+
// 본고딕/Roboto의 경우에도 비슷한 문제 발생
19+
// 맑은 고딕이나 YaHei(간체자 한자)/JhengHei(번체자 한자)의 경우 가나 문자의 자형이 좋지 못하므로, 'Segoe UI - Meiryo/Yu Gothic(일본 가나 문자) - YaHei/JhengHei - 맑은 고딕' 순으로 배치
20+
21+
--bs-font-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
22+
--bs-body-font-family:var(--bs-font-sans-serif);
23+
--bs-body-font-size:1rem;
24+
--bs-body-font-weight:400;
25+
--bs-body-line-height:1.5;
26+
--bs-body-color:#212529;
27+
--bs-body-color-rgb:33,37,41;
28+
--bs-body-bg:#fff;
29+
--bs-body-bg-rgb:255,255,255;
30+
--bs-emphasis-color:#000;
31+
--bs-secondary-color:rgba(33, 37, 41, 0.75);
32+
--bs-secondary-bg:#e9ecef;
33+
--bs-tertiary-bg:#f8f9fa;
34+
--bs-heading-color:inherit;
35+
--bs-link-color:#0d6efd;
36+
--bs-link-color-rgb:13,110,253;
37+
--bs-link-hover-color:#0a58ca;
38+
--bs-link-hover-color-rgb:10,88,202;
39+
--bs-code-color:#d63384;
40+
--bs-border-width:1px;
41+
--bs-border-style:solid;
42+
--bs-border-color:#dee2e6;
43+
--bs-border-color-translucent:rgba(0, 0, 0, 0.175);
44+
--bs-border-radius:0.375rem;
45+
--bs-border-radius-lg:0.5rem;
46+
--bs-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)
47+
}
48+
49+
header .post-desc,
50+
#search-results a,
51+
h5,
52+
h4,
53+
h3,
54+
h2,
55+
h1 {
56+
color:var(--heading-color);
57+
-weight:400;
58+
// font-family:Lato,"Microsoft Yahei",sans-serif
59+
font-family:Lato,"Pretendard JP Variable","Pretendard Variable","Microsoft Jhenghei","Microsoft Yahei",sans-serif
60+
}
61+
62+
body {
63+
background:var(--main-bg);
64+
padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
65+
color:var(--text-color);
66+
-webkit-font-smoothing:antialiased;
67+
// font-family:"Source Sans Pro","Microsoft Yahei",sans-serif
68+
font-family: "Source Sans Pro","Pretendard JP Variable","Pretendard JP","Pretendard Variable",Pretendard,sans-serif
69+
}
70+
71+
kbd {
72+
// font-family:Lato,sans-serif;
73+
font-family:Lato,"Pretendard JP Variable","Pretendard JP","Pretendard Variable",Pretendard,sans-serif;
74+
display:inline-block;
75+
vertical-align:middle;
76+
line-height:1.3rem;
77+
min-width:1.75rem;
78+
text-align:center;
79+
margin:0 .3rem;
80+
padding-top:.1rem;
81+
color:var(--kbd-text-color);
82+
background-color:var(--kbd-bg-color);
83+
border-radius:6px;
84+
border:solid 1px var(--kbd-wrap-color);
85+
box-shadow:inset 0 -2px 0 var(--kbd-wrap-color)
86+
}
87+
88+
#notification .toast-body {
89+
// font-family:Lato,sans-serif;
90+
font-family:Lato,"Pretendard JP Variable","Pretendard JP","Pretendard Variable",Pretendard,sans-serif;
91+
line-height:1.25rem
92+
}
93+
94+
.pagination {
95+
color:var(--text-color);
96+
// font-family:Lato,sans-serif;
97+
font-family:Lato,"Pretendard JP Variable","Pretendard JP","Pretendard Variable",Pretendard,sans-serif;
98+
justify-content:space-evenly
99+
}
100+
101+
#archives .date.day {
102+
font-size:85%;
103+
// font-family:Lato,sans-serif
104+
font-family:Lato,"Pretendard JP Variable","Pretendard JP","Pretendard Variable",Pretendard,sans-serif
105+
}

0 commit comments

Comments
 (0)