ubuntu 8.10のデフォルトフォントをIPAモナーにするには


Ubuntu 8.10からIPAモナーフォントがデフォルトではなくなります - いくやの斬鉄日記の理由によりubuntu8.10からデフォルトのフォントがdebianと同じくVLゴシックになる。

$ echo Y | sudo aptitude install ttf-ipamonafont

その後 ログオフしてログインしなおすか xset fp rehash する。

これだけ。

デフォルトフォントが変化する理由

このファイル(/etc/fonts/conf.avail/69-language-selector-ja-jp.conf)中でsans-serif,serif,monospaceをIPAモナーIPA、VLの優先順序で定義されている為だと思われる

<fontconfig>

	<match target="pattern">
		<test qual="any" name="family">
			<string>sans-serif</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>IPAMonaPGothic</string>
			<string>IPAPGothic</string>
			<string>VL PGothic</string>
			<string>Sazanami Gothic</string>
			<string>Kochi Gothic</string>
		</edit>
	</match> 
	<match target="pattern">
		<test qual="any" name="family">
			<string>serif</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>IPAMonaPMincho</string>
			<string>IPAPMincho</string>
			<string>Sazanami Mincho</string>
			<string>Kochi Mincho</string>
		</edit>
	</match> 
	<match target="pattern">
		<test qual="any" name="family">
			<string>monospace</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>IPAMonaGothic</string>
			<string>IPAGothic</string>
			<string>VL Gothic</string>
			<string>Sazanami Gothic</string>
			<string>Kochi Gothic</string>
		</edit>
	</match> 
</fontconfig>

以下はfirefoxgnomeのフォント設定でsansを使っていることが分かる。