본문 바로가기
IT

구글 폰트 적용

by Oh.mogilalia 2021. 8. 18.

Use on the web
To embed a font, copy the code into the <head> of your html
<link>
--------------
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Gowun+Dodum&family=Nanum+Brush+Script&family=Nanum+Gothic:wght@400;700&family=Nanum+Myeongjo:wght@400;800&display=swap" rel="stylesheet">
==============
Use on the web
To embed a font, copy the code into the <head> of your html
@import
--------------
<style>
@import url('https://fonts.googleapis.com/css2?family=Gowun+Dodum&family=Nanum+Gothic:wght@400;700&family=Nanum+Myeongjo:wght@400;800&display=swap');
</style>

CSS rules to specify families

font-family: 'Gowun Dodum', sans-serif;
font-family: 'Nanum Brush Script', cursive;
font-family: 'Nanum Gothic', sans-serif;
font-family: 'Nanum Gothic Coding', monospace;
font-family: 'Nanum Myeongjo', serif;
font-family: 'Nanum Pen Script', cursive;

'IT' 카테고리의 다른 글

MariaDB 로그 파일 삭제  (0) 2021.08.21
wordpress 예약되어 있는 유지보수 에러  (0) 2021.08.21
망보드 도움글  (0) 2021.08.15
Mysql socket error  (0) 2021.08.14
The REST API did not process the context query parameter correctly.  (0) 2021.08.14