Created
January 17, 2024 03:55
-
-
Save HotoRas/7c626fa1487e86a65fee8d0ec8459228 to your computer and use it in GitHub Desktop.
한국어 폰트 안 뜨면 돌리는 파일
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Fix korean font | |
| if [ ! -f /bin/wget ] || [ ! -f /bin/unzip ] || [ ! -f /bin/fc-cache ]; then | |
| echo "Please check if these installed:" | |
| echo " wget, unzip, fontconfig" | |
| exit | |
| fi | |
| if [ ! -x /bin/sudo ]; then | |
| echo "Please check if you're trying to launch this script" | |
| echo "from usr not in sudoers." | |
| echo "" | |
| echo "Installing font require superuser previllage" | |
| echo "and this script will use \"sudo\" to use it." | |
| exit | |
| fi | |
| echo "Downloading NanumFont family TTF..." | |
| echo "" | |
| wget http://cdn.naver.com/naver/NanumFont/fontfiles/NanumFont_TTF_ALL.zip | |
| echo "" | |
| echo "Unzipping..." | |
| unzip NanumFont_TTF_ALL.zip -d NanumFont | |
| rm -f NanumFont_TTF_ALL.zip | |
| echo "Install and refresh font cache..." | |
| sudo mv NanumFont /usr/share/fonts | |
| sudo fc-cache -f -v | |
| echo "Done! Please restart the session if needed, and check if it works." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment