๋ฉํ ๋ฆฌ์ผ ๋์์ธ์ ๊ธฐ๋ณธ ํฐํธ๋ Roboto ์ ๋๋ค.
์ด๋ ์๋ฌธ ์ ์ฉ ํฐํธ์ด๊ธฐ ๋๋ฌธ์, ๋ฐ๋ก ํ๊ตญ์ด ๊ธฐ๋ณธ ํฐํธ๋ฅผ ์ง์ ํด์ค์ผ ํฉ๋๋ค.
https://fonts.google.com/specimen/Roboto
Google Fonts: Roboto
Roboto has a dual nature. It has a mechanical skeleton and the forms are largely geometric. At the same time, the font features friendly and open curves. While
fonts.google.com
00. ํ๊ตญ๊ณ Roboto ๊ธฐ๋ณธ ํฐํธ
https://fonts.google.com/noto/specimen/Noto+Sans+KR
Google Fonts: Noto Sans Korean
Noto is a global font collection for writing in all modern and ancient languages. Noto Sans KR is an unmodulated (“sans serif”) design for the Korean language u
fonts.google.com
ํ๊ตญ์ด ์ง์ ๊ธฐ๋ณธ ํฐํธ๋ Noto Sans KR ์ ๋๋ค.
01. ํฐํธ ์ง์
์ ๋ src/css/font.css ์ ํฐํธ๋ค์ ์ง์ ํด์คฌ์ต๋๋ค.
์ด ์ค, Noto Sans KR ๋ฅผ ์ถ๊ฐํ์ต๋๋ค.
@font-face {
font-family: "Noto Sans KR";
font-style: normal;
font-display: swap;
src: url(https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;300;400;500;700;900&display=swap)
format("woff2");
}
02. ํฐํธ ํ ๋ง์ ์ ์ฉ
ํ์ฌ Roboto๋ก ์ง์ ๋์ด ์๋ ๊ธฐ๋ณธ ํฐํธ๋ฅผ NotoSans KR ๋ก ์ง์ ํด์ค๋๋ค.
let theme = createTheme({
...
typography: {
fontFamily: "Noto Sans KR",
},
...
});
https://mui.com/material-ui/customization/typography/
Typography - Material UI
The theme provides a set of type sizes that work well together, and also with the layout grid.
mui.com
๐ ๋ฐ์ํ์ ์ํ, font ํฌ๊ธฐ์ ๋ํด ๊ธฐ์ ํ ์์ ์ ๋๋ค.