Skip to content

Instantly share code, notes, and snippets.

@10sr
Created March 16, 2012 18:10
Show Gist options
  • Select an option

  • Save 10sr/2051565 to your computer and use it in GitHub Desktop.

Select an option

Save 10sr/2051565 to your computer and use it in GitHub Desktop.
my font config
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- http://debian.fam.cx/index.php?Software%2Ffontconfig#i2ccb788 -->
<!-- http://d.hatena.ne.jp/DOSEI/20100604/p2 -->
<alias>
<family>serif</family>
<prefer>
<family>monapo</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>monapo</family>
</prefer>
</alias>
<alias binding='strong'>
<family>monospace</family>
<prefer>
<family>DejaVu Sans Mono</family>
<family>monapo</family>
</prefer>
</alias>
</fontconfig>
@10sr
Copy link
Author

10sr commented Mar 17, 2012

https://wiki.archlinux.org/index.php/Font_Configuration から、

"An alternate approach is to set the "preferred" font, but this only works if the original font is not on the system, in which case the one specified will be substituted: "

つまり、sans-serifなどでもともと存在する英字フォントなどはそのままで、存在しない日本語フォントがmonapoに置き換えられる?

@10sr
Copy link
Author

10sr commented Mar 23, 2012

設定後はfc-cacheを忘れずに。
fontconfig - フォントの設定:Linuxの環境設定に関するメモ:So-netブログ
も参考になる。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment