个人工具

“UbuntuHelp:Fixing Japanese Fonts in Dapper”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{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 ...)
 
 
(未显示同一用户的4个中间版本)
第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 [[UbuntuHelp:WikiGuide|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:
  
第20行: 第12行:
 
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行: 第24行:
 
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>
第127行: 第112行:
 
</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:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2009年5月12日 (二) 16:49的最新版本

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.

Feedback? Please contact me: steve (at) gmail (dawt) com.