Created
July 15, 2014 01:12
-
-
Save ace4gi/e17606372925af0510b7 to your computer and use it in GitHub Desktop.
webFont.css (NanumGothic)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| html - <head> | |
| (function($){ | |
| var userAgent = navigator.userAgent.toLowerCase(); | |
| if( userAgent.indexOf('safari') != -1 && userAgent.indexOf('version') != -1 ){ | |
| // safari(중문표현 가능한 나눔고딕 폰트로 대체(.ttf, .otf) | |
| document.write('<link href="${cp}/css/webFont.css" rel="stylesheet" type="text/css" />'); | |
| }else{ | |
| document.write('<style type="text/css">@import url(https://fonts.googleapis.com/earlyaccess/nanumgothic.css);</style>'); | |
| } | |
| })(); | |
| webFont.css | |
| @charset "utf-8"; | |
| @font-face{font-family:'Nanum Gothic'; src:url('/asan/css/fonts/NanumGothic.otf')} | |
| @font-face{font-family:'Nanum Gothic'; src:url('/asan/css/fonts/NanumGothic.ttf')} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment