눈누, Google Fonts 등에서 웹폰트 주소를 복사해서 사용한다
@font-face {
font-family: 'SDSamliphopangche_Outline';
src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts-20-12@1.0/SDSamliphopangche_Outline.woff') format('woff');
font-weight: normal;
font-style: normal;
}
body {
font-family: 'SDSamliphopangche_Outline';
}
<head>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap" rel="stylesheet">
</head>
<style>
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap');
</style>
body {
font-family: 'Roboto', sans-serif;
}
font-family
이름은 원하는대로 지정@font-face {
font-family: 'neon';
src: url('../srcs/fonts/NeonPlanetDisplay.ttf') format('truetype');
}
body {
font-family: 'neon';
}