Laravel์ฉ Noto Sans Korean ํฐํธ
Google์ Noto Sansํฐํธ์ ๋ํ ํ๊ตญ ํฐํธ ์นํฐํธ๋ก ๋ณํํ์ฌ Laravel์ฉ์ผ๋ก ํจํค์งํ ํ๊ฒ ์
๋๋ค., (*1)
Noto Sansํฐํธ๋ Apache License 2.0์ ๋ฐ๋ฅด๊ณ ์์ต๋๋ค., (*2)
ํฐํธ์๋ํ ์์ธํ ์ฌํญ์ Google Noto Fonts์์ ํ์ธํ์ธ์., (*3)
์ค์น๋ฒ
๊ฐ๋ฐํ๋ก์ ํธ์ composer.json ํ์ผ์ require์์ ๋ค์์ ์ถ๊ฐํฉ๋๋ค., (*4)
"jeannedarc/laravel-notosans-korean": "1.0.*"
์ด์ ํ๋ก์ ํธ ๋๋ ํ ๋ฆฌ์์ ๋ค์ ๋ช
๋ น์ด๋ฅผ ์คํํ์ฌ, ํจํค์ง๋ฅผ ์ค์นํฉ๋๋ค., (*5)
composer update
(ํฐํธ ์ฉ๋์ด ํฐ ๊ด๊ณ๋ก ์ค๋๊ฑธ๋ฆด ์ ์์ต๋๋ค.), (*6)
์ด์ ์ด ํจํค์ง์ ๊ตฌ์ฑ๋์ด์๋ asset๋ค์ ํ๋ก์ ํธ๋ก ๊ฐ์ ธ์ฌ ์ฐจ๋ก์
๋๋ค., (*7)
php artisan asset:publish
์ฌ์ฉ๋ฒ
์ค์ ๋ก ์ฌ์ฉํ๊ธฐ ์ํด์ , ์ดํฐํธ๋ฅผ ์ฌ์ฉํ๊ณ ์ํ๋ ํ์ด์ง์ ํค๋์ ๋ค์๊ณผ ๊ฐ์ด ๋ฃ์ผ์ธ์., (*8)
<link href='<?php echo asset("packages/jeannedarc/laravel-notosans-korean/css/fonts.css")?>' rel='stylesheet' type='text/css'>
ํน์, import๋ฅผ ํ์ฉํ์ฌ, cssํ์ผ์ด๋, styleํ๊ทธ์์ ๋ค์์ ๋ฃ์ด์ฃผ์
๋๋ฉ๋๋ค., (*9)
@import url("packages/jeannedarc/laravel-notosans-korean/css/fonts.css");
๊ทธ๋ฌ๊ณ ๋์, CSS์ font-family๋ฅผ ๋ค์๊ณผ ๊ฐ์ด ๋ณ๊ฒฝํ์๋ฉด ํฐํธ๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค., (*10)
body{
font-family: "Noto Sans Korean", sans-serif;
}
๋ฌธ์
๊ธฐํ ๋ฌธ์ ์ฌํญ์ jeannedarc0330@gmail.com์ผ๋ก ํด์ฃผ์ธ์., (*11)
ํํ์ด์ง๋ ํ์ฌ ์ ์์ค์ ์์ต๋๋ค., (*12)