youtube나 다른 Flash에서 한글 font를 전혀 인식 하지 못하고 사각형으로 나오는 사태 발생
Fedora의 기본 폰트와는 상관없이 Flash에서는 Arial를 찾음. 아마도 hardcoded 된 상태인것으로 추측12
fc-match -s :family=Arial:lang=ko
해당 명령어 실행시 맨위에 LiberationSans-Regular가 나온다면 한글 Arial 폰트페이스에 영어 폰트가 매칭되고 있는 것임. 이를 해결하기 위해서는 fontconfig의 설정을 변경해야 함
일반적으로 /etc/fonts/conf.d 경로에 user.conf를 확인할수 있음 해당 설정파일은 유저별 설정을 읽어오는 부분이므로 어느 경로의 설정파일을 읽는지 확인해야 한다.
일반적으로는 ~/.font.conf 해당 파일을 다음과 같이 작성3
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match>
<test name="family">
<string>arial</string>
</test>
<edit name="family" binding="strong">
<string>NotoSansCJKkr</string>
</edit>
</match>
<match>
<test name="family">
<string>sans-serif</string> <!-- 혹시 모르니.. -->
</test>
<edit name="family" binding="strong">
<string>NanumGothic</string>
</edit>
</match>
</fontconfig>
reboot를 하면 Arial 폰트 패밀리에 대해서 NotoSansCJKkr글꼴로 설정된것을 알 수있다. 위의 fc-match 명령어로 이를 확인할수 있다.