나의 .fonts.conf

리눅스 2014. 6. 13. 12:26
맑은 고딕 및 한글 폰트는 힌팅 스타일이 medium에 맞춰져 있다. 반면

알파벳 문자는 힌팅 스타일 slight에서 가장 또렷히 보이고 맑은 고딕도
예외가 아니다.
알파벳은 다른 폰트
를 써서 slight로 처리하고 한글 폰트는 따로 medium으로
처리하자.
사용 폰트: 맑은 고딕, 네이버사전체, 고정폭 굴림체(gulimche.ttf) 등

<?xml version="1.0"?>
<fontconfig>

 <!-- 폰트 매칭 -->
  <match target="pattern" >
    <test name="family" qual="any" >
      <string>serif</string>
    </test>
    <edit mode="append" binding="strong" name="family" >
      <string>DejaVu Serif</string>
      <string>Malgun Gothic</string>
      <string>Naver Dictionary</string>
    </edit>
  </match>
 
  <match target="pattern" >
    <test name="family" qual="any" >
      <string>sans-serif</string>
    </test>
    <edit mode="append" binding="strong" name="family" >
      <string>DejaVu Sans</string>
      <string>Malgun Gothic</string>
      <string>Naver Dictionary</string>
    </edit>
  </match>

  <match target="pattern" >
    <test name="family" qual="any" >
      <string>monospace</string>
    </test>
    <edit mode="append" binding="strong" name="family" >
      <string>DejaVu Sans Mono</string>
      <string>GulimChe</string>
    </edit>
  </match>

 <!-- 안티 앨리어스 ON -->
  <match target="font" >
    <edit mode="assign" name="antialias" >
      <bool>true</bool>
    </edit>
  </match>

 <!-- DPI -->
  <match target="pattern">
    <edit name="dpi" mode="assign">
      <double>96</double>
    </edit>
  </match>

 <!-- 힌팅 ON -->
  <match target="font" >
    <edit mode="assign" name="hinting" >
      <bool>true</bool>
    </edit>
  </match>


 <!-- 자동 힌트 OFF -->
  <match target="font" >
    <edit mode="assign" name="autohint" >
      <bool>false</bool>
    </edit>
  </match>


  <!-- 힌팅 스타일 -->
  <match target="font" >
    <edit mode="assign" name="hintstyle" >
      <const>hintslight</const>
    </edit>
  </match>

 <!-- 맑은 고딕은 힌팅 스타일 따로 -->
  <match target="font" >
    <test name="family" >
      <string>Malgun Gothic</string>
      <string>맑은 고딕</string>
    </test>
    <edit mode="assign" name="hintstyle" >
      <const>hintmedium</const>
    </edit>
  </match>


 <!-- RGB -->
  <match target="font" >
    <edit mode="assign" name="rgba" >
      <const>rgb</const>
    </edit>
  </match>

 <!-- LCD Filter -->
  <match target="font">
    <edit mode="assign" name="lcdfilter">
      <const>lcddefault</const>
    </edit>
  </match>

 <!-- 고정폭 굴림체의 내장 비트맵 ON -->
  <match target="font" >
    <test name="family" >
      <string>GulimChe</string>
    </test>
    <edit mode="assign" name="antialias" >
      <bool>false</bool>
    </edit>
  </match>

</fontconfig>


참고 : http://www.freedesktop.org/wiki/ScreenFontSettings


Posted by 猫한 보스코
,

aimp3, foobar 등을 들어봐도 mplayer 음색만 못하고

smplayer로 동영상 재생과 혼용하자니 번거로웠는데

윈도즈용 mpd가 있다는 걸 알게 됨.

 

http://www.musicpd.org/


[ 윈도즈 버전 mpd 설명 ]

doc 디렉터리의 mpdconf.example 파일을 bin 디렉터리로 복사한 후

mpd.conf로 개명하고 필요한 부분을 수정한다.


music_directory        "d:\\home\\music\\mp3"          

 ㄴ mp3 디렉터리 위치 지정. 역슬래시를 두개씩 적을 것.

playlist_directory        "playlists"

 ㄴ bin 디렉터리에 playlists 디렉터리를 수동으로 생성할 것

 

db_file            "database"

log_file            "log"

bind_to_address        "127.0.0.1"

 ㄴ 각각 주석 제거


audio_output {
    type        "winmm"
    name        "My WinMM output"
    device        "0"        # optional
} < 요것까지 주석 해제하는 걸 놓치지 말 것


이러면 localhost용으론 준비 끝.

클라이언트는 Gmpc Portable이 괜찮았음.

 

mpd.exe의 바로가기를 만들고 대상 항목에

D:\Portable\mpd-0.17.4-win32\bin\mpd.exe mpd.conf

와 같이 mpd.conf를 적은 후 실행. 다음은 gmpc portable을 실행해서

Database 항목의 곡들을 선택 후 Play Queue에 추가해서 들으면 됨. 

 

Posted by 猫한 보스코
,

요즘 프레임 측정을 위해 Fraps를 켜놨는데 direct3d 출력 드라이버에서 프레임 표시가 되네요. -_-

lavf 디먹서를 안 써도 yadif 더블 프레임은 잘 됨.

Posted by 猫한 보스코
,