特殊:Badtitle/NS100:Fixing Japanese Fonts in Dapper:修订间差异
小 新页面: {{From|https://help.ubuntu.com/community/Fixing_Japanese_Fonts_in_Dapper}} {{Languages|UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper}} This page is a default template for documentation on ... |
小无编辑摘要 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/Fixing_Japanese_Fonts_in_Dapper}} | {{From|https://help.ubuntu.com/community/Fixing_Japanese_Fonts_in_Dapper}} | ||
{{Languages|UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper}} | {{Languages|UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper}} | ||
This page is a default template for documentation on the wiki. To create a new guide on the wiki, read the page WikiGuide. | This page is a default template for documentation on the wiki. To create a new guide on the wiki, read the page WikiGuide. | ||
== Introduction == | == Introduction == | ||
Default Japanese fonts in Dapper can be re-configured to create a much more legible, finished look. | Default Japanese fonts in Dapper can be re-configured to create a much more legible, finished look. | ||
This is a short method for for installing IPA fonts for system use. I'm not a font expert, but hopefully someone will find this useful. | This is a short method for for installing IPA fonts for system use. I'm not a font expert, but hopefully someone will find this useful. | ||
== Let's Do It == | == Let's Do It == | ||
This is a short method for improving the default fonts for a much more readible set. I'm not a font expert, but hopefully someone will find this useful. | This is a short method for improving the default fonts for a much more readible set. I'm not a font expert, but hopefully someone will find this useful. | ||
1. Add the ubuntu-ja repositories in a terminal: | 1. Add the ubuntu-ja repositories in a terminal: | ||
<pre><nowiki> | <pre><nowiki> | ||
gksudo gedit /etc/apt/sources.list | gksudo gedit /etc/apt/sources.list | ||
</nowiki></pre> | </nowiki></pre> | ||
Add to the bottom: | Add to the bottom: | ||
<pre><nowiki> | <pre><nowiki> | ||
deb http://archive.ubuntulinux.jp/ubuntu-ja dapper/ | deb http://archive.ubuntulinux.jp/ubuntu-ja dapper/ | ||
deb http://archive.ubuntulinux.jp/ubuntu-ja dapper-ja/ | deb http://archive.ubuntulinux.jp/ubuntu-ja dapper-ja/ | ||
</nowiki></pre> | </nowiki></pre> | ||
Close gedit. Type: | Close gedit. Type: | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get update | sudo apt-get update | ||
第36行: | 第23行: | ||
gksudo gedit /etc/fonts/local.conf | gksudo gedit /etc/fonts/local.conf | ||
</nowiki></pre> | </nowiki></pre> | ||
CAUTION: Do NOT do the following if you are running Kubuntu Dapper. See *** below. | CAUTION: Do NOT do the following if you are running Kubuntu Dapper. See *** below. | ||
HINT: you might not yet have a /etc/fonts/local.conf, just create it. Then copy the following into the new file, save, and exit: | HINT: you might not yet have a /etc/fonts/local.conf, just create it. Then copy the following into the new file, save, and exit: | ||
<pre><nowiki> | <pre><nowiki> | ||
<fontconfig> | <fontconfig> | ||
第57行: | 第41行: | ||
</edit> | </edit> | ||
</match> | </match> | ||
<match target="font"> | <match target="font"> | ||
<test name="lang" compare="contains"> | <test name="lang" compare="contains"> | ||
第72行: | 第55行: | ||
</edit> | </edit> | ||
</match> | </match> | ||
<match target="font"> | <match target="font"> | ||
<test name="lang" compare="contains"> | <test name="lang" compare="contains"> | ||
第91行: | 第73行: | ||
</edit> | </edit> | ||
</match> | </match> | ||
<match target="pattern"> | <match target="pattern"> | ||
<test qual="any" name="family"> | <test qual="any" name="family"> | ||
第127行: | 第108行: | ||
</fontconfig> | </fontconfig> | ||
</nowiki></pre> | </nowiki></pre> | ||
Reboot (or log out, kill gdm, and restart it.) | Reboot (or log out, kill gdm, and restart it.) | ||
== Notes == | == Notes == | ||
* This method will make your Japanese fonts look ridiculously good, but it will also change your default sans, serif, etc. system fonts' settings. In the end, it was worth it for me. | * This method will make your Japanese fonts look ridiculously good, but it will also change your default sans, serif, etc. system fonts' settings. In the end, it was worth it for me. | ||
** The above local.conf was taken from http://people.ubuntu.com/~mvo/bzr/language-selector/language-selector--mvo/fontconfig/ja_JP. I take no credit for this file, unless it be monetary ;) | ** The above local.conf was taken from http://people.ubuntu.com/~mvo/bzr/language-selector/language-selector--mvo/fontconfig/ja_JP. I take no credit for this file, unless it be monetary ;) | ||
*** Editing /etc/fonts/fonts.conf screws up fonts and replaces all writing with boxes in Kubuntu Dapper. If you wish to use these fonts, you are reccomended to install using the same first steps, then change your font settings under 'appearance' in the system settings. | *** Editing /etc/fonts/fonts.conf screws up fonts and replaces all writing with boxes in Kubuntu Dapper. If you wish to use these fonts, you are reccomended to install using the same first steps, then change your font settings under 'appearance' in the system settings. | ||
Feedback? Please contact me: steve (at) gmail (dawt) com. | Feedback? Please contact me: steve (at) gmail (dawt) com. | ||
---- | ---- | ||
[[category:CategoryDocumentation]] | [[category:CategoryDocumentation]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2007年11月30日 (五) 17:16的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Fixing_Japanese_Fonts_in_Dapper }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/af | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|Afrikaans| [[::Fixing Japanese Fonts in Dapper/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/ar | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|العربية| [[::Fixing Japanese Fonts in Dapper/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/az | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|azərbaycanca| [[::Fixing Japanese Fonts in Dapper/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/bcc | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|جهلسری بلوچی| [[::Fixing Japanese Fonts in Dapper/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/bg | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|български| [[::Fixing Japanese Fonts in Dapper/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/br | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|brezhoneg| [[::Fixing Japanese Fonts in Dapper/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/ca | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|català| [[::Fixing Japanese Fonts in Dapper/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/cs | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|čeština| [[::Fixing Japanese Fonts in Dapper/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/de | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|Deutsch| [[::Fixing Japanese Fonts in Dapper/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/el | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|Ελληνικά| [[::Fixing Japanese Fonts in Dapper/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/es | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|español| [[::Fixing Japanese Fonts in Dapper/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/fa | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|فارسی| [[::Fixing Japanese Fonts in Dapper/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/fi | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|suomi| [[::Fixing Japanese Fonts in Dapper/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/fr | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|français| [[::Fixing Japanese Fonts in Dapper/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/gu | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|ગુજરાતી| [[::Fixing Japanese Fonts in Dapper/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/he | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|עברית| [[::Fixing Japanese Fonts in Dapper/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/hu | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|magyar| [[::Fixing Japanese Fonts in Dapper/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/id | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|Bahasa Indonesia| [[::Fixing Japanese Fonts in Dapper/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/it | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|italiano| [[::Fixing Japanese Fonts in Dapper/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/ja | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|日本語| [[::Fixing Japanese Fonts in Dapper/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/ko | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|한국어| [[::Fixing Japanese Fonts in Dapper/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/ksh | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|Ripoarisch| [[::Fixing Japanese Fonts in Dapper/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/mr | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|मराठी| [[::Fixing Japanese Fonts in Dapper/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/ms | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|Bahasa Melayu| [[::Fixing Japanese Fonts in Dapper/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/nl | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|Nederlands| [[::Fixing Japanese Fonts in Dapper/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/no | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|norsk| [[::Fixing Japanese Fonts in Dapper/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/oc | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|occitan| [[::Fixing Japanese Fonts in Dapper/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/pl | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|polski| [[::Fixing Japanese Fonts in Dapper/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/pt | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|português| [[::Fixing Japanese Fonts in Dapper/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/ro | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|română| [[::Fixing Japanese Fonts in Dapper/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/ru | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|русский| [[::Fixing Japanese Fonts in Dapper/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/si | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|සිංහල| [[::Fixing Japanese Fonts in Dapper/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/sq | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|shqip| [[::Fixing Japanese Fonts in Dapper/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/sr | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|српски / srpski| [[::Fixing Japanese Fonts in Dapper/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/sv | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|svenska| [[::Fixing Japanese Fonts in Dapper/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/th | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|ไทย| [[::Fixing Japanese Fonts in Dapper/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/tr | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|Türkçe| [[::Fixing Japanese Fonts in Dapper/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/vi | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|Tiếng Việt| [[::Fixing Japanese Fonts in Dapper/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/yue | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|粵語| [[::Fixing Japanese Fonts in Dapper/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/zh | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|中文| [[::Fixing Japanese Fonts in Dapper/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/zh-hans | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|中文(简体)| [[::Fixing Japanese Fonts in Dapper/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper | {{#if: | :}}Fixing Japanese Fonts in Dapper}}/zh-hant | • {{#if: UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|中文(繁體)| [[::Fixing Japanese Fonts in Dapper/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Fixing_Japanese_Fonts_in_Dapper|:Fixing Japanese Fonts in Dapper|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Fixing Japanese Fonts in Dapper/zh | | {{#ifexist: Fixing Japanese Fonts in Dapper/zh | | {{#ifeq: {{#titleparts:Fixing Japanese Fonts in Dapper|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Fixing Japanese Fonts in Dapper|1|-1|}} | zh | | }}
This page is a default template for documentation on the wiki. To create a new guide on the wiki, read the page WikiGuide.
Introduction
Default Japanese fonts in Dapper can be re-configured to create a much more legible, finished look. This is a short method for for installing IPA fonts for system use. I'm not a font expert, but hopefully someone will find this useful.
Let's Do It
This is a short method for improving the default fonts for a much more readible set. I'm not a font expert, but hopefully someone will find this useful. 1. Add the ubuntu-ja repositories in a terminal:
gksudo gedit /etc/apt/sources.list
Add to the bottom:
deb http://archive.ubuntulinux.jp/ubuntu-ja dapper/ deb http://archive.ubuntulinux.jp/ubuntu-ja dapper-ja/
Close gedit. Type:
sudo apt-get update sudo apt-get install ipafont ipamonafont sudo mv /etc/fonts/local.conf /etc/fonts/local.conf.backup gksudo gedit /etc/fonts/local.conf
CAUTION: Do NOT do the following if you are running Kubuntu Dapper. See *** below. HINT: you might not yet have a /etc/fonts/local.conf, just create it. Then copy the following into the new file, save, and exit:
<fontconfig> <match target="font"> <edit name="embeddedbitmap" mode="assign"> <bool>false</bool> </edit> <edit name="autohint" mode="assign"> <bool>true</bool> </edit> <edit name="antialias" mode="assign"> <bool>true</bool> </edit> <edit name="hintstyle" mode="assign"> <const>hintnone</const> </edit> </match> <match target="font"> <test name="lang" compare="contains"> <string>ja</string> </test> <test name="spacing" compare="eq"> <const>dual</const> </test> <edit name="spacing"> <const>proportional</const> </edit> <edit name="globaladvance" binding="strong"> <bool>false</bool> </edit> </match> <match target="font"> <test name="lang" compare="contains"> <string>ja</string> </test> <test name="outline" compare="eq"> <bool>false</bool> </test> <test name="spacing" compare="eq"> <const>mono</const> <const>charcell</const> </test> <edit name="spacing"> <const>proportional</const> </edit> <edit name="globaladvance" binding="strong"> <bool>false</bool> </edit> </match> <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>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>Sazanami Gothic</string> <string>Kochi Gothic</string> </edit> </match> </fontconfig>
Reboot (or log out, kill gdm, and restart it.)
Notes
- This method will make your Japanese fonts look ridiculously good, but it will also change your default sans, serif, etc. system fonts' settings. In the end, it was worth it for me.
- The above local.conf was taken from http://people.ubuntu.com/~mvo/bzr/language-selector/language-selector--mvo/fontconfig/ja_JP. I take no credit for this file, unless it be monetary ;)
- Editing /etc/fonts/fonts.conf screws up fonts and replaces all writing with boxes in Kubuntu Dapper. If you wish to use these fonts, you are reccomended to install using the same first steps, then change your font settings under 'appearance' in the system settings.
- The above local.conf was taken from http://people.ubuntu.com/~mvo/bzr/language-selector/language-selector--mvo/fontconfig/ja_JP. I take no credit for this file, unless it be monetary ;)
Feedback? Please contact me: steve (at) gmail (dawt) com.