お知らせ

  • 利用規約を守って投稿してください。また、よくある質問および投稿の手引きも参照してください。
  • メッセージの投稿にはアカウントが必要です。未登録の方は、ユーザ登録ページからアカウントを作成することができます。

#1 2010-10-06 12:14:56

ahawkins82
新しいメンバ
From: 大阪
登録日: 2010-10-06

フォントの問題

皆さん、こんにちは。私の母国語は日本語ではないので、間違えばすみません。

Ubuntu 10.04で、日本語の規定フォントはタカオでしょ。これがいいと思います。しかし、新しい日本語のフォントをインストールすれば、日本語のテキストは全く新しいフォントに変更しまいます。デスクトップで、メニューで、ブラウザで、どこでも。

なぜそんなことが発生しますか?英語で規定フォントは「Sans」です。

オフライン

 

#2 2010-10-08 21:39:54

tista
ゲスト

Re: フォントの問題

Hi.

If you wanna fix your favorite Japanese fonts, you can do it.

In Japanese fonts, the "Japanese font name"  would be related to default font-family, like "Sans" and/or "Serif".
for relations of them, if you're using lucid Japanese remix, we usually use below:

/etc/fonts/conf.d/69-language-selector-ja-jp.conf

But, this conf has an effect on whole accounts in your PC. So I can suggest account-specified fonts conf.

1. copy that conf to your $HOME/ as .fonts.conf (command below)

cp /etc/fonts/conf.d/69-language-selector-ja-jp.conf $HOME/.fonts.conf

2. Find a section showing "sans-serif" settings. For example, my .fonts.conf is like that,

<match target="pattern">
        <test name="lang" compare="contains">
            <string>ja</string>
        </test>
        <test qual="any" name="family">
            <string>sans-serif</string>
        </test>
        <edit name="family" mode="prepend" binding="strong">
            <string>VL Pゴシック</string>   
            <string>meiryo</string>
            <string>DejaVu Sans</string>
            <string>Takao Pゴシック</string>
            <string>IPA Pゴシック</string>
            <string>IPA モナー Pゴシック</string>
            <string>UmePlus P Gothic</string>
            <string>梅Pゴシック</string>
            <string>さざなみゴシック</string>
            <string>東風ゴシック</string>
        </edit>
    </match>

3. Replace entries you wanna desire up to top, like that,

<match target="pattern">
        <test name="lang" compare="contains">
            <string>ja</string>
        </test>
        <test qual="any" name="family">
            <string>sans-serif</string>
        </test>
        <edit name="family" mode="prepend" binding="strong">
            <string>Takao Pゴシック</string>
            <string>VL Pゴシック</string>   
            <string>meiryo</string>
            <string>DejaVu Sans</string>
            <string>IPA Pゴシック</string>
            <string>IPA モナー Pゴシック</string>
            <string>UmePlus P Gothic</string>
            <string>梅Pゴシック</string>
            <string>さざなみゴシック</string>
            <string>東風ゴシック</string>
        </edit>
    </match>

4. Save file, and reboot your PC.

Best regards.

 

#3 2010-10-08 22:06:18

ahawkins82
新しいメンバ
From: 大阪
登録日: 2010-10-06

Re: フォントの問題

お返事いただきありがとうございます。

I'm not using Japanese remix because I use 64-bit Ubuntu. I do have all of the suggested packages installed though, "ubuntu-desktop-ja," etc. I don't have the file "/etc/fonts/conf.d/69-language-selector-ja-jp.conf," maybe that's my problem? I don't really care about having different settings for different accounts, I'm the only person who uses this computer.

オフライン

 

#4 2010-10-08 22:27:45

tista
ゲスト

Re: フォントの問題

Oh, that's not your problem.

If you're using Gnome, it would be better to using "language-support" GUI tool. It's more helpful to solve dependencies in Japanese environment.
Select language to Japanese, and system will guide you to automatic packages downloading and installing them.

And then, Creating that file, I suppose that.

Try it.

 

#5 2010-10-09 00:07:32

ahawkins82
新しいメンバ
From: 大阪
登録日: 2010-10-06

Re: フォントの問題

Okay, so I copied the 69-language-selector-ja-jp.conf file from a Japanese Remix live disk to my etc/fonts/conf.d folder. That altered my English font display, so I edited the file to include DejaVu Sans, DejaVu Serif, and DejaVu Sans Mono. Now everything looks perfect, and I can install new Japanese fonts without changing anything.

オフライン

 

#6 2010-10-09 00:31:53

tista
ゲスト

Re: フォントの問題

I'm glad to help you. =)

 

#7 2012-02-24 13:01:38

wubuntu
メンバ
登録日: 2008-05-24

Re: フォントの問題

一年以上前の話題ですが、私も全く同じ問題に遭遇し少し違うやり方で解決したので、日本語で備忘録をかねて書きます。
64bitのubuntu(私の場合11.10がインストールできなかったので表題と同じ10.04)を英語の環境でインストールしたら日本語が正しく表示されないという問題です。
まず、ubuntu-jaから日本語デスクトップ環境をダウンロードしてインストールします。これで日本語が綺麗に表示されるかと思ったのですができなかったのでこのスレにたどり着きました。
基本的に私だけしか使用しないパソコンですが、自分のフォルダに .fonts.confというフォルダをつくり、69-language-selector-ja-jp.confを/etc/fonts/conf.availからコピーしました。
そのままでは英語がきれいに表示されないということなので、上にあるようにDejaVu Sans, DejaVu Serif,  DejaVu Sans Monoをconfファイルに追加しました。これで日本語も英語も綺麗に表示できます。mozcはうまくインストールできませんが、anthyはインストールができて日本語入力もできます。(この投稿はそのテストも兼ねています。)
これで64びっと環境でも日本語がストレスなしで使えそうです。

オフライン

 

Board footer

Powered by FluxBB