우분투14.04 youtube에서 한글 깨짐 해결하기

munilive
munilive
우분투14.04 youtube에서 한글 깨짐 해결하기

우분투 14.04의 Youtube 화면

페이스북 우분투 커뮤니티의 정승대님이 남기신 글을 보고 아래와 같이 기록한다.
우분투에서 youtube 사이트를 이용할 때 광고 화면 우측 하단의 스킵하기 버튼이나 자막의 한글이 깨져 나오는 경우가 있다. 이를 해결 하기 위한 방법으로 아래와 같이 설정하고 리부팅하도록 한다.

해결 방법

  1. ~/.config/fontconfig/fonts.conf 파일을 연다.
    없으면 생성하도록 한다.

  2. 아래 와 같이 입력하고 저장

    <?xml version='1.0'?>
    <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
    <fontconfig>
    <match>
       <test name="family">
          <string>sans-serif</string>
       </test>
       <edit name="family" binding="strong">
          <string>NanumGothic</string>
       </edit>
    </match>
    <match>
       <test name="family">
          <string>arial</string>
       </test>
       <edit name="family" binding="strong">
          <string>NanumGothic</string>
       </edit>
    </match>
    
    <alias>
       <family>sans-serif</family>
       <prefer>
          <family>Bitstream Vera Sans</family>
          <family>NanumGothic</family>
          <family>Source Han Sans</family>
       </prefer>
    </alias>
    <alias>
       <family>serif</family>
       <prefer>
          <family>Bitstream Vera Sans</family>
          <family>NanumMyeongjo</family>
       </prefer>
    </alias>
    <alias>
       <family>monospace</family>
       <prefer>
          <family>Bitstream Vera Sans Mono</family>
          <family>NanumGothicCoding</family>
       </prefer>
    </alias>
  3. fc-cache -fv 명령 실행

  4. 3번 명령 실행이 완료되면 reboot을 실행 하여 우분투를 리부팅 한다.

  5. youtube 사이트에 접속하여 광고가 나오는 영상이나 자막이 있는 영상을 틀어서 한글이 잘 출력되는지 확인 한다.

위 설정은 sens-serifarial 글꼴을 strong 으로 매치시켜주는 설정이다.

munilive

munilive

Backend Application Developer

Share

Comments

Related Posts

phpStorm 사용시 에디터 창 자체에서 한글이 깨져 나오는 경우 해결방법

phpStorm 사용시 에디터 창 자체에서 한글이 깨져 나오는 경우 해결방법

phpStorm을 우분투에 설치 하고 나서 IDE 스타일을 Dracula 테마로 설정하고 사용하는데 한글이 깨져서 나오는 것이였다. 소스편집창에서의 한글 깨짐이 아닌 phpStor…

munilive munilive ·
ubuntu에서 cron이 정상 작동하지 않을 경우

ubuntu에서 cron이 정상 작동하지 않을 경우

우분투에서 crontab 으로 shell script 를 등록하였는데 정상작동 하지 않아 그 원인을 찾기 위해 알아본 방법을 정리 한다. 우분투에서는 폴더에 cron 로그가 생기…

munilive munilive ·
ubuntu 14.04 Wireshark 인터페이스 인식 안되는 문제

ubuntu 14.04 Wireshark 인터페이스 인식 안되는 문제

ubuntu 에서 wireshark를 설치 하고 실행 하면 eth0 를 비롯한 네트워크 인터페이스가 인식되지 않는 문제가 있다. 의 실행 권한 문제로 인하여 Wireshark 에…

munilive munilive ·