* Plamo-4.7に比べて認識されているXLFDが少ない [#ebec2ceb]
- ページ: [[不具合報告/Plamo64-1.0]]
- 投稿者: [[kojima]]
- 優先順位: 重要
- 状態: 完了
- カテゴリー: 不具合報告
- 投稿日: 2011-03-30 (水) 00:11:17
- バージョン:
** メッセージ [#zfd5afcd]
最近のXだとfontconfig経由でだいたい間に合うので放置していたけど、Plamo-5.0だと4.7系に比べてxlsfonts/xfontselで表示されるフォントがずいぶん少ない。フォントそのものは4.7系と同じくらい入っているのだけど、設定等が未調整だったので、とりあえずの直し方。
/etc/X11/xorg.conf の Files セクションはこんな感じにする。
Section "Files"
#RgbPath "/lib/X11/rgb"
#ModulePath "/lib/modules"
# FontPath "/usr/X11R7/lib/X11/fonts/local/"
# FontPath "/usr/X11R7/lib/X11/fonts/CID/"
FontPath "unix/:7100"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/misc/:unscaled"
FontPath "/usr/share/fonts/X11/fonts/TTF/"
FontPath "/usr/share/fonts/X11/fonts/Type1/"
FontPath "/usr/share/fonts/X11/fonts/cyrillic/"
FontPath "/usr/share/fonts/TrueType/"
FontPath "/usr/share/fonts/freefont/"
FontPath "/usr/share/fonts/Bitmap/:unscaled"
FontPath "/usr/share/fonts/Bitmap/"
FontPath "/usr/share/ghostscript/fonts/"
EndSection
/usr/share/fonts/Bitmapが抜けているのがかなり大きかった気配。
あと、それぞれのフォントのあるディレクトリで fonts.dir, fonts.scale のファイルを生成する。
実際は手動でやったのでスクリプトとしては試してないけど、多分、こんな感じ。
# cd /usr/share/fonts/X11
# for i in 100dpi 75dpi TTF Type1 cyrillic misc ; do
# cd $i ; mkfontdir . ; mkfontscale . ; cd ..
# done
# cd /usr/share/fonts
# for i in Bitmap freefont ghostscript ; do
# cd $i ; mkfontdir . ; mkfontscale . ; cd ..
# done
# cd /usr/share/fonts/TrueType
# ln -sf fonts.alias_plamo fonts.alias
# ln -sf fonts.dir_plamo fonts.dir
# mkfontscale .
xorg.conf を書き変えたら一度Xを再起動する必要がありそう。
とりあえずこれぐらいの処理で
$ xlsfonts | wc -l
10638
ぐらいになった。Plamo-4.73だと 21079 くらいなのでまだ半分くらいなんだけど、
ざっと見る限り、4.73では
-adobe-cheq-medium-r-normal--0-0-0-0-m-0-adobe-fontspecific
-adobe-courier-bold-o-normal--0-0-100-100-m-0-iso10646-1
-adobe-courier-bold-o-normal--0-0-100-100-m-0-iso10646-1
-adobe-courier-bold-o-normal--0-0-100-100-m-0-iso8859-1
-adobe-courier-bold-o-normal--0-0-100-100-m-0-iso8859-1
みたいに同じXLFDが複数リストアップされているようなので、多分実質的には同等になっているのでは。
--------
-
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/misc/:unscaled"
このあたりを
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/100dpi/”
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/”
FontPath "/usr/share/fonts/X11/misc/:unscaled"
FontPath "/usr/share/fonts/X11/misc/”
みたいにすれば、15000くらいになるみたい。-- [[kojima]] &new{2011-03-30 (水) 18:46:35};
- エラーでてダメダメだった tgif も再度パッケージ作ってみるかな? とは言えもう inkscape を使ってるので Tgif は使ってないけど :) -- [[TenForward]] &new{2011-03-30 (水) 23:34:34};
#comment