Emacs frames are shown too wide with "dual spacing" fonts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Emacs |
Unknown
|
Unknown
|
|||
Ubuntu Japanese Kaizen Project |
Fix Released
|
Low
|
Hajime Mizuno | ||
emacs23 (Debian) |
Fix Released
|
Unknown
|
|||
emacs23 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Affected Packages: emacs23, emacs-snapshot
DESCRIPTION:
Emacs does not support "dual spacing"(Zenkaku) fonts.
So, with something(any?) Japanese font(included dual spacing/half spacingglyphs) in use, their fonts rendered with ugly spaces. And Emacs frames are shown twice as wide as it supposed to be.
How to reproduce:
1) Install below packages
Emacs: 23.1+1-4ubuntu7
ttf-takao-gothic: 003.02.01-2ubuntu1
2) Set
(add-to-list 'default-
in your .emacs, Emacs frmaes are created with 128 characters width.
This is problematic, e.g., when you use the shell mode, which underestimates the frame width.
As a result, 'ls' command shows its result annoyingly narrowly.
SOLUTION:
a) Apply patch.
http://
http://
b) update Emacs24
=======
WORKAROUND:
=======
Here is the workaround I found.
1. Create ~/.fonts.conf and write the following to it
<match target="font">
<test compare="contains" target="pattern" name="lang">
<string>
<string>
<string>
<string>
</test>
<edit name="spacing"
<edit name="globaladv
</match>
2. Run "fc-cache -f -v" to enable the change.
3. Create ~/.Xresources and write the following to it. (You can set the font size to whatever size you like)
Emacs.font: TakaoGothic-
4. Run "xrdb -remove ~/.Xresources ; xrdb -merge ~/.Xresources" to enable the change.
That's all.
Currently in my environment, the font for Emacs is configured in ~/.Xresources alone.
RELATED LINKS:
There are some people discussing this issue on the Internet, but not in Launchpad.
- http://
- http://
=======
Changed in ubuntu-jp-improvement: | |
importance: | Undecided → Low |
status: | New → Triaged |
assignee: | nobody → Hajime Mizuno (mizuno-as) |
description: | updated |
Changed in emacs23 (Debian): | |
status: | Unknown → Confirmed |
description: | updated |
summary: |
- Emacs frames are shown too wide with Takao gothic font + Emacs frames are shown too wide with "dual spacing" fonts |
Changed in emacs23 (Debian): | |
status: | Confirmed → Fix Released |
Well, probably "fc-cache -f -v" thing is not necessary...