jongi
5월 17, 2012, 3:39오후
1
우분투 11.10에서 12.04로 업그레이드 한 상태입니다.
Advanced Settings 프로그램의 Fonts 설정에서는 hinting을 full로 하고, Inconsolata 폰트를 사용하는 프로그램에서만 hintslight를 적용하고 싶어서, $HOME/.fonts.conf 파일을 만들고 아래와 같이 설정했습니다.
하지만, 의도대로 적용되지 않네요. gnome-terminal 프로그램에서만이라도 Inconsolata 폰트를 사용할 경우 hintslight를 먹이고 싶습니다. 어떻게 해야 할까요?
[code:2rqhdzz2]
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font" >
<test compare="eq" name="family">
<string>Inconsolata</string>
</test>
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
<edit name="hintstyle" mode="assign">
<const>hintslight</const>
</edit>
<edit mode="assign" name="autohint">
<bool>false</bool>
</edit>
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
</match>
</fontconfig>
[/code:2rqhdzz2]
jongi
5월 21, 2012, 8:21오전
2
자답은 아니지만,
그나마 /etc/fonts/conf.d/90-fonts-unfonts-extra.conf 파일을 수정해서. 아래와 같이 ~/.fonts.conf 파일로 만들었더니 그나마 가장 낫네요.
[code:2istpmtp]
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<test name="family" qual="any">
<string>Inconsolata</string>
</test>
<edit name="antialias" mode="assign" binding="strong"><bool>true</bool></edit>
<edit name="hinting" mode="assign" binding="strong"><bool>true</bool></edit>
<edit name="autohint" mode="assign" binding="strong"><bool>true</bool></edit>
<edit name="hintstyle" mode="assign" binding="strong"><const>hintslight</const></edit>
</match>
</fontconfig>
[/code:2istpmtp]
이맥스에서는 .Xresource 파일에 다음 줄을 추가해서, Inconsolata 를 hintslight 를 지정해서 쓰고 있는데, 그놈 터미널에서는 위 설정이 제가 찾은 최선의 방법이네요. 혹시라도, 더 나은 방법이 있다면 조언 부탁드립니다.
[code:2istpmtp]
Emacs23font: Inconsolata:hinting=true:autohint=true:hintstyle=hintslight
Emacs23 useXIM: off
[/code:2istpmtp]