Commit b7c45b14 authored by zlzleking's avatar zlzleking

Change Webfont settings

parent 6a22a43d
......@@ -125,20 +125,6 @@ class SkinLiberty extends SkinTemplate {
font-family: $LibertyUserFontSettings;
}");
}
// 웹폰트 로딩
$LibertyUserWebFontSettings = $this->getUser()->getOption( 'liberty-font-web' );
$LibertyAvailableWebFonts = ['Nanum Gothic', 'Nanum Myeongjo', 'KoPubDotum', 'Noto Sans CJK KR' ];
$LibertyWebFontAvailableCheck = in_array ( $LibertyUserFontSettings , $LibertyAvailableWebFonts);
if ( $LibertyUserFontSettings != "default" && $LibertyUserWebFontSettings == True && $LibertyWebFontAvailableCheck == True) {
$LibertyWebFontAddress = $this -> getSkin() -> getSkinStylePath ('fonts/'.$LibertyUserFontSettings.".woff");
$out->addInlineStyle( "
@font-face {
font-family: $LibertyUserFontSettings;
src: url('$LibertyWebFontAddress') format('woff')
}
");
}
// @codingStandardsIgnoreEnd
}
......
......@@ -27,7 +27,7 @@ h3,
h4,
h5,
h6 {
font-family: 'Noto Sans Korean', 'Noto Sans', 'Noto Sans CJK KR', 'Nanum Gothic', 'KoPub Dotum', 'Malgun Gothic', '맑은 고딕', sans-serif;
font-family: 'Noto Sans KR', 'Noto Sans', 'Noto Sans CJK KR', 'Nanum Gothic', 'KoPub Dotum', 'Malgun Gothic', '맑은 고딕', sans-serif;
margin: 0;
}
......@@ -38,7 +38,7 @@ h4,
h5,
h6,
b {
font-family: 'Noto Sans Korean', 'Noto Sans', 'Noto Sans CJK KR', 'Nanum Gothic', 'KoPub Dotum', 'Malgun Gothic', '맑은 고딕', sans-serif;
font-family: 'Noto Sans KR', 'Noto Sans', 'Noto Sans CJK KR', 'Nanum Gothic', 'KoPub Dotum', 'Malgun Gothic', '맑은 고딕', sans-serif;
}
input[type=password] {
......
@import url( //cdn.jsdelivr.net/font-kopub/1.0/kopubdotum.css );
\ No newline at end of file
/*
* Nanum Gothic (Korean) http://www.google.com/fonts/earlyaccess
*/
@font-face {
font-family: 'Nanum Gothic';
font-style: normal;
font-weight: 400;
src: url( //fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Regular.eot );
src: url( //fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Regular.eot?#iefix ) format( 'embedded-opentype' ),
url( //fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Regular.woff2 ) format( 'woff2' ),
url( //fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Regular.woff ) format( 'woff' ),
url( //fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Regular.ttf ) format( 'truetype' );
}
@font-face {
font-family: 'Nanum Gothic';
font-style: normal;
font-weight: 700;
src: url( //fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Bold.eot );
src: url( //fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Bold.eot?#iefix ) format( 'embedded-opentype' ),
url( //fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Bold.woff2 ) format( 'woff2' ),
url( //fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Bold.woff ) format( 'woff' ),
url( //fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Bold.ttf ) format( 'truetype' );
}
@font-face {
font-family: 'Nanum Gothic';
font-style: normal;
font-weight: 800;
src: url( //fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-ExtraBold.eot );
src: url( //fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-ExtraBold.eot?#iefix ) format( 'embedded-opentype' ),
url( //fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-ExtraBold.woff2 ) format( 'woff2' ),
url( //fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-ExtraBold.woff ) format( 'woff' ),
url( //fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-ExtraBold.ttf ) format( 'truetype' );
}
\ No newline at end of file
@import url( //cdn.rawgit.com/theeluwin/NotoSansKR-Hestia/master/stylesheets/NotoSansKR-Hestia.css );
\ No newline at end of file
/*나눔고딕, 나눔명조, 나눔펜스크립트, 본고딕 */
@import url('https://fonts.googleapis.com/css?family=Nanum+Gothic|Nanum+Gothic+Coding|Nanum+Myeongjo|Nanum+Pen+Script|Noto+Sans+KR&display=swap');
/* kopub돋움 */
@import url('//cdn.jsdelivr.net/font-kopub/1.0/kopubdotum.css');
\ No newline at end of file
......@@ -34,7 +34,5 @@
"liberty-pref-color-second-help": "사이트에서 보조로 사용할 색상을 정합니다.",
"liberty-pref-fonts": "사용하실 폰트를 선택하세요.",
"liberty-pref-fonts-helplabel": "설명",
"liberty-pref-fonts-help": "여기서 설정한 폰트는 사용자의 해당 폰트가 디바이스에 설치되었을 때만 적용됩니다. 만약 폰트가 설치되어 있지 않더라도 작동하는 것을 원하신다면 하단의 웹폰트 로딩을 켜주세요.",
"liberty-pref-fonts-web": "웹폰트 로딩 (지원 폰트 : 본고딕, 나눔고딕, 나눔명조, KoPub돋움)",
"liberty-pref-fonts-web-help": "웹폰트는 많은 데이터 사용량을 발생시키고, 로딩 속도 저하와 데이터 요금 발생을 야기할 수 있습니다. 신중히 선택해 주세요."
}
"liberty-pref-fonts-help": "여기서 설정한 폰트는 사용자의 해당 폰트가 디바이스에 설치되었을 때만 적용됩니다. 다만 본고딕, 나눔고딕 등은 웹폰트로 로딩되어서 적용됩니다."
}
\ No newline at end of file
......@@ -49,6 +49,9 @@
"css/extensions/RelatedArticles.css": {
"media": "all"
},
"css/font/webfont.css": {
"media": "all"
},
"css/print.css": {
"media": "print"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment