July 2, 2008

Flash 9で日本語が表示されない件

しばし表示されなくて困ってた。今まではxfsの設定ファイルが必要でそこからフォントパスをたどってもげもげとかだったのが、fontconfigに移行した、ところまでは情報として入手できてたけど、Pangoもリンクしててなおさら不自然極まりない挙動に頭を抱えてたが、Pangoはあまり直接関係はないみたいだ。fontconfig単体だけ使った場合には非常にありがちな問題なのだけど、sans-serifから見つけたフォントをそのまま使いつづけるため、最初に掴んだフォントが欧文フォントだと日本語とかがでなくなってしまうということらしい。.fonts.confをいじって日本語フォントを最初につかませるように変えたら問題なくなった。

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
...
<alias>
<family>sans-serif</family>
<prefer>
<family>VL Gothic</family>
</prefer>
</alias>
...
</fontconfig>

ちょっとした失敗

なんか--hogeみたいなファイルができててコマンドを*で実行したら--hogeなんてオプション知らねえとか言われて、何を言ってるのか最初さっぱり分からんかった。状況的にはこんな感じ。

% touch -r -f
% mkdir foo
% rm *
% ls
-f -r
ワイルドカードの前に--を入れとくのが安全だよね。

June 14, 2008

息子の誕生日

補完。義父、義母、義姉夫婦とともに。アンパンマンのデコレーションケーキとかプレゼントとかいろいろ喜んでくれたようだ。

June 9, 2008

EmulateWheelが動かない

Xの設定で

Section "InputDevice"
Driver "mouse"
Option "EmulateWheel" "true"
...
EndSection

という設定がある。ThinkPadとかでトラックポイントを使ってスクロールさせるための設定なんだけど、Fedora 9で動かなくなった。というのもFedora 9で本来予定されていたxorg.confに何もかかなくても動くように自動でデバイスを認識して〜という機能の副作用みたいなもので、evdevが有効にされてしまうため。他にもキーボードのレイアウトがとか問題も多く、Fedora 10まで延期にされたfeature。

ともあれ、この問題を解決するために以下の行を追加すると動くようになる(参考)。

Section "ServerFlags"
Option "AutoAddDevices" "false"
EndSection

June 6, 2008

Arguments on gconf-cleaner

just realized that linuxinsight.com posted an article about gconf-cleaner. that's good to see. thanks for picking that up.

Aside from that, actually I have sometimes seen someone was picking up and eventually ending up to have similar comments every times. like wonder if it affects the performance. this is an XML file though. and complaint of GConf, typically that may comes on the flamewar like GNOME v.s. KDE then. please not heat up so much about the kind of the joke software, even though you have complaint on GConf and GNOME. that may improves the performance after cleaning up. dunno. but I just wanted to get rid of the unnecessary keys and values there as we sometimes do clean up the unnecessary dot files from $HOME. that's all. at least I have never expected anything else :)