방법1 (ie 에는 안되는 방법 (woff2 지원 안함))
CSS에 아래 코드를 넣는다.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | @import url(//fonts.googleapis.com/earlyaccess/notosanskr.css); body{ font-family: 'Noto Sans KR', sans-serif!important; font-weight: 300!important; letter-spacing: -0.01em!important; } h1, h2, h3, h4, h5, h6{ font-family: 'Noto Sans KR', sans-serif!important; font-weight: 700!important; letter-spacing: -0.01em!important; } |
두께는 100, 300, 350, 400, 500, 700, 900
방법2
ie에서도 됨
아래 링크에서 폰트 다운 받고 서버에 올린 후 적용시킴
https://google-webfonts-helper.herokuapp.com/fonts/noto-sans-kr?subsets=korean,latin
아래 코드는 많이 쓰는 300, 400, 700만 적용
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | /* noto-sans-kr-regular - latin_korean */ @font-face { font-family: 'Noto Sans KR'; font-style: normal; font-weight: 400; src: url('../fonts/noto-sans-kr-v12-latin_korean-regular.eot'); /* IE9 Compat Modes */ src: local('Noto Sans KR Regular'), local('NotoSansKR-Regular'), url('../fonts/noto-sans-kr-v12-latin_korean-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/noto-sans-kr-v12-latin_korean-regular.woff2') format('woff2'), /* Super Modern Browsers */ url('../fonts/noto-sans-kr-v12-latin_korean-regular.woff') format('woff'), /* Modern Browsers */ url('../fonts/noto-sans-kr-v12-latin_korean-regular.ttf') format('truetype'), /* Safari, Android, iOS */ url('../fonts/noto-sans-kr-v12-latin_korean-regular.svg#NotoSansKR') format('svg'); /* Legacy iOS */ } /* noto-sans-kr-500 - latin_korean */ @font-face { font-family: 'Noto Sans KR'; font-style: normal; font-weight: 500; src: url('../fonts/noto-sans-kr-v12-latin_korean-500.eot'); /* IE9 Compat Modes */ src: local('Noto Sans KR Medium'), local('NotoSansKR-Medium'), url('../fonts/noto-sans-kr-v12-latin_korean-500.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/noto-sans-kr-v12-latin_korean-500.woff2') format('woff2'), /* Super Modern Browsers */ url('../fonts/noto-sans-kr-v12-latin_korean-500.woff') format('woff'), /* Modern Browsers */ url('../fonts/noto-sans-kr-v12-latin_korean-500.ttf') format('truetype'), /* Safari, Android, iOS */ url('../fonts/noto-sans-kr-v12-latin_korean-500.svg#NotoSansKR') format('svg'); /* Legacy iOS */ } /* noto-sans-kr-700 - latin_korean */ @font-face { font-family: 'Noto Sans KR'; font-style: normal; font-weight: 700; src: url('../fonts/noto-sans-kr-v12-latin_korean-700.eot'); /* IE9 Compat Modes */ src: local('Noto Sans KR Bold'), local('NotoSansKR-Bold'), url('../fonts/noto-sans-kr-v12-latin_korean-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/noto-sans-kr-v12-latin_korean-700.woff2') format('woff2'), /* Super Modern Browsers */ url('../fonts/noto-sans-kr-v12-latin_korean-700.woff') format('woff'), /* Modern Browsers */ url('../fonts/noto-sans-kr-v12-latin_korean-700.ttf') format('truetype'), /* Safari, Android, iOS */ url('../fonts/noto-sans-kr-v12-latin_korean-700.svg#NotoSansKR') format('svg'); /* Legacy iOS */ } body{ font-family: 'Noto Sans KR', sans-serif!important; font-weight: 300!important; letter-spacing: -0.01em!important; } h1, h2, h3, h4, h5, h6{ font-family: 'Noto Sans KR', sans-serif!important; font-weight: 700!important; letter-spacing: -0.01em!important; } |
참고 블로그 :