리눅스 스팀 한글 고치는 법

사용자들이 직접 작성하는 실전팁!

Moderator: Dry8r3aD

kqwe1859
Posts: 19
Joined: 2008/06/30 Mon 5:50 pm
Location: 대한민국 경북

리눅스 스팀 한글 고치는 법

Postby kqwe1859 » 2013/11/03 Sun 11:43 pm

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

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

Code: Select all

<?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>


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

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

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

portal_kor.png
portal_kor.png (2.05 MiB) Viewed 9050 times


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

oppor
Posts: 495
Joined: 2009/03/16 Mon 5:14 pm

Re: 리눅스 스팀 한글 고치는 법

Postby oppor » 2013/11/06 Wed 8:44 am

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

감사합니다.

tinywolf
Posts: 1330
Joined: 2008/11/19 Wed 10:00 pm
Location: 커뮤니티 탈퇴했습니다.

Re: 리눅스 스팀 한글 고치는 법

Postby tinywolf » 2013/11/07 Thu 12:17 am

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

tinywolf
Posts: 1330
Joined: 2008/11/19 Wed 10:00 pm
Location: 커뮤니티 탈퇴했습니다.

Re: 리눅스 스팀 한글 고치는 법

Postby tinywolf » 2013/11/07 Thu 2:13 pm

그래도 안 나와요 :cry:

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

Code: Select all

<?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: Select all

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:~$

kqwe1859
Posts: 19
Joined: 2008/06/30 Mon 5:50 pm
Location: 대한민국 경북

Re: 리눅스 스팀 한글 고치는 법

Postby kqwe1859 » 2013/11/07 Thu 3:00 pm

tinywolf wrote:그래도 안 나와요 :cry:

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


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

Code: Select all

<?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>


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

tinywolf
Posts: 1330
Joined: 2008/11/19 Wed 10:00 pm
Location: 커뮤니티 탈퇴했습니다.

Re: 리눅스 스팀 한글 고치는 법

Postby tinywolf » 2013/11/07 Thu 8:34 pm

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

User avatar
마잇
Posts: 527
Joined: 2009/07/28 Tue 7:28 pm

Re: 리눅스 스팀 한글 고치는 법

Postby 마잇 » 2013/11/08 Fri 2:22 am

fc-match 'Nimbus Sans L' -a | head

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

tinywolf
Posts: 1330
Joined: 2008/11/19 Wed 10:00 pm
Location: 커뮤니티 탈퇴했습니다.

Re: 리눅스 스팀 한글 고치는 법

Postby tinywolf » 2013/11/08 Fri 1:32 pm

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

Code: Select all

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"

portal.jpg

oppor
Posts: 495
Joined: 2009/03/16 Mon 5:14 pm

Re: 리눅스 스팀 한글 고치는 법

Postby oppor » 2013/11/08 Fri 9:09 pm

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

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

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

kqwe1859
Posts: 19
Joined: 2008/06/30 Mon 5:50 pm
Location: 대한민국 경북

Re: 리눅스 스팀 한글 고치는 법

Postby kqwe1859 » 2013/11/08 Fri 10:16 pm

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

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

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


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

fff1.png
fff1.png (1.7 MiB) Viewed 8427 times


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

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

fff.png
fff.png (2.05 MiB) Viewed 8427 times


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

Code: Select all

[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: Select all

[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 ~]$


이게 적용 후인데..

fff2.png
fff2.png (2.06 MiB) Viewed 8427 times


넣으면 또 나오구요.

Code: Select all

<match>
    <test name="family">
        <string>Nimbus Sans L</string>
    </test>
 <edit name="family" binding="strong">
        <string>UnDotum</string>
    </edit>
</match>


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

Return to “팁 게시판”

Who is online

Users browsing this forum: No registered users and 2 guests