리눅스 스팀 한글 고치는 법

리눅스에서 소스 엔진 게임은 한글 표시 문제를 가지고 있습니다.
한글이 나와야 할 곳에 빈칸만 덩그러니 있어서 전혀 게임을 못하고 있었는데요, 요번에 제가 그걸 표시하는 방법을 알아냈습니다.

~/.config/fontconfig/fonts.conf 내용입니다.

[code:s49tgwss]
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<test qual="any" name="family"><string>Nimbus Sans L</string></test>
<edit name="family" mode="assign" binding="same"><string>UnDotum</string></edit>
</match>
</fontconfig>
[/code:s49tgwss]

은돋음이 깔려있다는 전제하에 작동합니다. 다른 폰트로 바꾸시려면 UnDotum을 다른것으로 변경하시면 됩니다.

스팀이 한글을 표시할때 Nimbus Sans L이라는 들어보지도 못한 폰트를 사용하는데, 그걸 강제로 UnDotum으로 변경해 표시하게 만드는 원리입니다.

수정후에 터미널에서 fc-cache 한번 쳐 주신 후에, 로그아웃/재시작 후에 다시 소스 게임을 실행하면

[attachment=0:s49tgwss]portal_kor.png[/attachment:s49tgwss]

마치 언제 그랬냐는듯이 인게임 메뉴/자막 모두 잘 나오네요. -.-;

헐. 여태 아무도 고치지 못하고
포기 하고 있던 문제였던걸로 아는데
손쉬운 해결방법을 찾아주셨네요.

감사합니다.

Nimbus Sans L을 바꾸면 되는 거였군요!!
저도 삽질하다가 포기했는데!
감사합니다.
내일 한번 해봐야겠네요.

그래도 안 나와요 :cry:

우분투 13.04인데요.
UnDotum을 첨에 해보고 안되서 나눔고딕으로도 해봤는데 안되요. ㅠㅠ
재부팅을 해봐도 안되고 fc-cache를 연신 해봐도 안되고…

[code:2hy8usld]<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<test qual="any" name="family">
<string>Nimbus Sans L</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>NanumGothic</string>
</edit>
</match>
</fontconfig>[/code:2hy8usld]

[code:2hy8usld]tinywolf@tinywolf-ubuntu:~$ fc-cache -fv
Fontconfig warning: "/etc/fonts/conf.d/90-fonts-nanum-eco.conf", line 9: Having multiple values in <test> isn’t supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/90-fonts-nanum-eco.conf", line 18: Having multiple values in <test> isn’t supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/90-fonts-nanum-eco.conf", line 28: Having multiple values in <test> isn’t supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/90-fonts-nanum-eco.conf", line 38: Having multiple values in <test> isn’t supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/90-fonts-nanum-eco.conf", line 48: Having multiple values in <test> isn’t supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/90-fonts-nanum-gothic-light.conf", line 8: Having multiple values in <test> isn’t supported and may not work as expected
/usr/share/fonts: caching, new cache contents: 0 fonts, 4 dirs
/usr/share/fonts/X11: caching, new cache contents: 0 fonts, 4 dirs
/usr/share/fonts/X11/Type1: caching, new cache contents: 82 fonts, 0 dirs
/usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/X11/encodings/large: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/X11/misc: caching, new cache contents: 59 fonts, 0 dirs
/usr/share/fonts/X11/util: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap: caching, new cache contents: 0 fonts, 5 dirs
/usr/share/fonts/cmap/adobe-cns1: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap/adobe-gb1: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap/adobe-janan2: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap/adobe-japan1: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap/adobe-korea1: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/truetype: caching, new cache contents: 1 fonts, 32 dirs
/usr/share/fonts/truetype/abyssinica: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/droid: caching, new cache contents: 18 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-sil-abyssinica: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/truetype/freefont: caching, new cache contents: 12 fonts, 0 dirs
/usr/share/fonts/truetype/gentium: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/truetype/gentium-basic: caching, new cache contents: 8 fonts, 0 dirs
/usr/share/fonts/truetype/horai-umefont: caching, new cache contents: 18 fonts, 0 dirs
/usr/share/fonts/truetype/kacst: caching, new cache contents: 15 fonts, 0 dirs
/usr/share/fonts/truetype/kacst-one: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/truetype/lao: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/liberation: caching, new cache contents: 16 fonts, 0 dirs
/usr/share/fonts/truetype/lyx: caching, new cache contents: 10 fonts, 0 dirs
/usr/share/fonts/truetype/msttcorefonts: caching, new cache contents: 60 fonts, 0 dirs
/usr/share/fonts/truetype/nanum: caching, new cache contents: 8 fonts, 0 dirs
/usr/share/fonts/truetype/nanum-coding: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/truetype/nanum-eco: caching, new cache contents: 6 fonts, 0 dirs
/usr/share/fonts/truetype/nanum-gothic-light: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/openoffice: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/padauk: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/truetype/sinhala: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/takao-gothic: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/tibetan-machine: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/tlwg: caching, new cache contents: 54 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-dejavu: caching, new cache contents: 21 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-indic-fonts-core: caching, new cache contents: 17 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-khmeros-core: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-liberation: caching, new cache contents: 16 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-marvosym: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-punjabi-fonts: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/truetype/ubuntu-font-family: caching, new cache contents: 13 fonts, 0 dirs
/usr/share/fonts/truetype/unfonts-core: caching, new cache contents: 12 fonts, 0 dirs
/usr/share/fonts/truetype/wqy: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/type1: caching, new cache contents: 0 fonts, 2 dirs
/usr/share/fonts/type1/gsfonts: caching, new cache contents: 35 fonts, 0 dirs
/usr/share/fonts/type1/mathml: caching, new cache contents: 1 fonts, 0 dirs
/usr/X11R6/lib/X11/fonts: skipping, no such directory
/usr/local/share/fonts: caching, new cache contents: 0 fonts, 0 dirs
/home/tinywolf/.local/share/fonts: skipping, no such directory
/home/tinywolf/.fonts: skipping, no such directory
/usr/share/texmf/fonts/opentype/public/lm: caching, new cache contents: 72 fonts, 0 dirs
/usr/share/texmf/fonts/opentype/public/lm-math: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/texmf/fonts/opentype/public/tex-gyre: caching, new cache contents: 33 fonts, 0 dirs
/usr/share/texmf/fonts/opentype/public/tex-gyre-math: caching, new cache contents: 2 fonts, 0 dirs
/var/cache/fontconfig: not cleaning unwritable cache directory
/home/tinywolf/.cache/fontconfig: cleaning cache directory
/home/tinywolf/.fontconfig: not cleaning non-existent cache directory
fc-cache: succeeded
tinywolf@tinywolf-ubuntu:~$ [/code:2hy8usld]

[quote="tinywolf":vxdju8my]그래도 안 나와요 :cry:

우분투 13.04인데요.
UnDotum을 첨에 해보고 안되서 나눔고딕으로도 해봤는데 안되요. ㅠㅠ
재부팅을 해봐도 안되고 fc-cache를 연신 해봐도 안되고…
[/quote:vxdju8my]

~/.config/fontconfig/fonts.conf 말고 ~/.fonts.conf로 해보시겠어요?
설정 파일 경로 문제가 아니라면 제 게시글에 있는 저 conf 내용을 조금 수정할 필요가 있을듯 한데…

[code:vxdju8my]
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias binding="same">
<family>Nimbus Sans L</family>
<prefer>
<family>UnDotum</family>
<family>NanumGothic</family>
</prefer>
</alias>
</fontconfig>
[/code:vxdju8my]

이걸로 한번 실험 해보시겠어요? :?:

~/.fonts.conf 도 해봤었지요.
내일 다시 한번 더 시도해봐야겠네요.

fc-match ‘Nimbus Sans L’ -a | head

폰트 삽질할 때 도움 됩니다.

역시…
안되요… 흐흑… ㅠㅠ

[code:yx80jwbj]tinywolf@tinywolf-ubuntu:~$ fc-match ‘Nimbus Sans L’ -a | head
UnDotum.ttf: "은 돋움" "Regular"
UnDotumBold.ttf: "은 돋움" "Bold"
NanumGothic.ttf: "나눔고딕" "Regular"
NanumGothicLight.ttf: "나눔고딕" "Light"
NanumGothicBold.ttf: "나눔고딕" "Bold"
NanumGothicExtraBold.ttf: "나눔고딕" "ExtraBold"
n019003l.pfb: "Nimbus Sans L" "Regular"
n019043l.pfb: "Nimbus Sans L" "Regular Condensed"
n019004l.pfb: "Nimbus Sans L" "Bold"
n019044l.pfb: "Nimbus Sans L" "Bold Condensed"[/code:yx80jwbj]
[attachment=0:yx80jwbj]portal.jpg[/attachment:yx80jwbj]

저도 이 방법으론 안되네요.

스팀이 Nimbus Sans L 을 사용한다는걸 확인할수 있는 방법이 있나요?

다른걸 사용할수도 있지 않을까 싶어서요.

[quote="oppor":94jw4xls]저도 이 방법으론 안되네요.

스팀이 Nimbus Sans L 을 사용한다는걸 확인할수 있는 방법이 있나요?

다른걸 사용할수도 있지 않을까 싶어서요.[/quote:94jw4xls]

한글이 안보이는 상태에서 인-게임 콘솔을 보시면,

[attachment=0:94jw4xls]fff1.png[/attachment:94jw4xls]

이런 식으로 Nimbus 관련 문구가 꽤 보이길래 혹시나 해서 치환했더니 저는 되던데 말이지요.
찾아보니 이거 관련해서도 몇 게시물을 찾을수도 있었구요.

[url:94jw4xls]https://github.com/ValveSoftware/steam-for-linux/issues/1507[/url:94jw4xls]
[url:94jw4xls]http://steamcommunity.com/app/221410/discussions/0/864960987143235455/?l=tchinese[/url:94jw4xls]

[attachment=1:94jw4xls]fff.png[/attachment:94jw4xls]

혹시나 해서 제 fonts.conf를 빼고 다시 해보니 또 한글이 안나옵니다.
다시 넣으면 또 나오구요.

[code:94jw4xls]
[helloks@helloks-linuxbox ~]$ fc-match ‘Nimbus Sans L’ -a | head
n019003l.pfb: "Nimbus Sans L" "Regular"
n019043l.pfb: "Nimbus Sans L" "Regular Condensed"
n019004l.pfb: "Nimbus Sans L" "Bold"
n019044l.pfb: "Nimbus Sans L" "Bold Condensed"
n019023l.pfb: "Nimbus Sans L" "Regular Italic"
n019063l.pfb: "Nimbus Sans L" "Regular Condensed Italic"
n019024l.pfb: "Nimbus Sans L" "Bold Italic"
n019064l.pfb: "Nimbus Sans L" "Bold Condensed Italic"
NanumGothic.ttf: "나눔고딕" "Regular"
arial.ttf: "Arial" "Normal"
[helloks@helloks-linuxbox ~]$
[/code:94jw4xls]

이게 적용 전이고

[code:94jw4xls]
[helloks@helloks-linuxbox ~]$ fc-match ‘Nimbus Sans L’ -a | head
UnDotum.ttf: "은 돋움" "Regular"
UnDotumBold.ttf: "은 돋움" "Bold"
arial.ttf: "Arial" "Normal"
arialbd.ttf: "Arial" "Negreta"
ariali.ttf: "Arial" "Cursiva"
arialbi.ttf: "Arial" "Negreta cursiva"
DejaVuSans.ttf: "DejaVu Sans" "Book"
DejaVuSansCondensed.ttf: "DejaVu Sans" "Condensed"
DejaVuSans-ExtraLight.ttf: "DejaVu Sans" "ExtraLight"
DejaVuSans-Bold.ttf: "DejaVu Sans" "Bold"
[helloks@helloks-linuxbox ~]$
[/code:94jw4xls]

이게 적용 후인데…

[attachment=2:94jw4xls]fff2.png[/attachment:94jw4xls]

넣으면 또 나오구요.

[code:94jw4xls]
<match>
<test name="family">
<string>Nimbus Sans L</string>
</test>
<edit name="family" binding="strong">
<string>UnDotum</string>
</edit>
</match>
[/code:94jw4xls]

이걸로 해보세요. 이것도 안되면 제 능력 밖이네요… :oops:
죄송합니다… ㅠㅠ

fc-match ‘Nimbus Sans L’ -a | head

를 했을때

pfb 확장자가 들어간 내용이 완전히 사라지네요.
전 pfb 내용이 여전히 몇개씩 남아 있거든요.
아마 이것때문이지 않을까 싶어요.

그런데 없애는 방법은 모르겠음.ㅋㅋ

올려주신 결과를 보니 제 생각에도 binding="strong"을 적용해야 될 것 같습니다.

여태 못해보다가 오늘 해봤습니다.

그런데…
안되네요.

[attachment=1:325nnglf]스크린샷, 20131113 224704.png[/attachment:325nnglf]
혹시나 해서 스팀 디렉토리 아래의 fontconfig도 싹 청소해 봤지만 여전히 안 나옵니다.
[attachment=0:325nnglf]스크린샷, 20131113 224709.png[/attachment:325nnglf]

oppor씨 말씀처럼, 저 pfb가 남아있는게 문제이지 않을까 싶은데. 어떻게 해야할지를 모르겠네요.

아아. 맹렬하게 하고 싶다!

감사하긴 하나 font 관련 파일이 어디 있는 지 원.

저역시 한글이 안나와서 영문으로 설정하고 게임하는데
어제인가 …제가 민트16을 사용하는데 …업그레이하라는 마크가 떠서 업데이트 했는데
그후 아무 생각없이 스팀을 클릭하니 스팀도 업뎃이 되더군요.
그런데 갑자기 게임이 한글로 나와요. 폰트 관련해서는 손댄것도 없는데 신기하군요
스팀때문인지 민트때문인지 알수가 없네요. 혹시 다른분 스팀 업뎃이 되면서 한글로 나오시는분 없나요?

[quote="jjkk22":j155ewj9]저역시 한글이 안나와서 영문으로 설정하고 게임하는데
어제인가 …제가 민트16을 사용하는데 …업그레이하라는 마크가 떠서 업데이트 했는데
그후 아무 생각없이 스팀을 클릭하니 스팀도 업뎃이 되더군요.
그런데 갑자기 게임이 한글로 나와요. 폰트 관련해서는 손댄것도 없는데 신기하군요
스팀때문인지 민트때문인지 알수가 없네요. 혹시 다른분 스팀 업뎃이 되면서 한글로 나오시는분 없나요?[/quote:j155ewj9]
설마…
설마…
저는 우분투 12.04 lts 버전인데요. 아직 스팀 업데이트 그런 것이 없내요… 소프트웨어적으로도요…

[code:j155ewj9]sudo apt-get upgrade[/code:j155ewj9]
해도 없으니깐요…

하지만 이건 징조라는 마음으로… 곧 업뎃 곧 업뎃

[attachment=0:235r045n]2014-09-15_00001.jpg[/attachment:235r045n]

ttf-wqy-zenhei 패키지를 까니까 잘 나오더이다.

[url:235r045n]https://wiki.archlinux.org/index.php/steam#Installation[/url:235r045n]에서

[quote:235r045n]Steam makes heavy usage of the Arial font. A decent Arial font to use is ttf-liberation or the fonts provided by Steam. Asian languages require wqy-zenhei to display properly. [/quote:235r045n]

라고 된 부분을 참고했습니다.

[quote="aljjam":3vkved99][attachment=0:3vkved99]2014-09-15_00001.jpg[/attachment:3vkved99]

ttf-wqy-zenhei 패키지를 까니까 잘 나오더이다.

[url:3vkved99]https://wiki.archlinux.org/index.php/steam#Installation[/url:3vkved99]에서

[quote:3vkved99]Steam makes heavy usage of the Arial font. A decent Arial font to use is ttf-liberation or the fonts provided by Steam. Asian languages require wqy-zenhei to display properly. [/quote:3vkved99]

라고 된 부분을 참고했습니다.[/quote:3vkved99]

이런 지식을 주셔서 감사합니다.

[attachment=0:1lddwsr2]a-1.jpg[/attachment:1lddwsr2]
[attachment=1:1lddwsr2]a-0.jpg[/attachment:1lddwsr2]

스팀 게임도 안되지만 (메뉴는 나오고 자막은 안나오는 현상)
배틀 포 웨노스 우분투 소프트웨어 관리자 게임도 안되네요.

ttf…도 깔고…
fc-match도 적용시키긴 했지만
변함이 없네요.

사실 nimbus sans L 이랑 DajaVu sans L 폰트 둘 다 제 루분투에 기본으로 깔려 있는 폰트입니다.
리브레 오피스에서 두 폰트로 한글 잘 씌이구요.

혹시 무슨 문제인지 아시는 분 있으신가요?

[url:hvmhwami]http://www.ubuntu-kr.org/viewtopic.php?p=118678[/url:hvmhwami]