본문 바로가기

웹폰트3

CDN을 이용한 "pretendard variable" 웹폰트 적용 (성능 최적화 버전) 폰트 적용 코드 페이지 내에 안에 pretendard를 로드해주고,css에서 아래와 같이 적용하면 됨.body,input,textarea,select,button,table{ color: #101010; font-size: 12px; line-height: 16px; font-family: 'Pretendard Variable',Pretendard,-apple-system,BlinkMacSystemFont,"Malgun Gothic","맑은 고딕",helvetica,"Apple SD Gothic Neo",'Noto Sans KR',sans-serif; font-weight: 500; letter-spacing: -0.4px;} preload 사용 이유를 사용하면 브라.. 2025. 4. 18.
웹폰트 사용 시 @import와 <link> 방식 중 어떤 걸 써야할까? 결론웹폰트는 방식이 성능이 좋기 때문에 @import 말고 를 사용하자. @import로딩 시점HTML 파싱 시에 바로 요청CSS파일 로드 후 요청 시작속도빠름느림SEO/접근성좋음영향 없음google pagespeed insights권장비권장 2025. 4. 18.
나눔고딕 다운(eot, woff, ttf) 및 적용방법 예 [웹폰트 적용방법 예] @font-face{ font-family:ng; src:url(NanumGothic.eot); src:local(※), url(NanumGothic.woff) format(‘woff’) } body,table/*,input,textarea,select,button*/{font-family:NanumGothic,'나눔고딕',ng,sans-serif} [웹폰트 지원 브라우저] ie6~9, FireFox, Chrome, Opera, Safari [나눔고딕다운] (작은용량:동작확인 필요) (작은용량:동작확인 필요) [구글 code] http://code.google.com/p/nanum-web-font/downloads/list [구글 웹폰트 CDN] 나눔폰트는 구글에서도 웹폰트 CDN.. 2012. 8. 23.
728x90
반응형