package: emacs23
version: 23.2+1-2
severity: normail

original report is https://bugs.launchpad.net/ubuntu-jp-improvement/+bug/596423

DESCRIPTION:

With Takao Gothic in use, Emacs frames are shown twice as wide as it
supposed to be.

For example, if you write
 (add-to-list 'default-frame-alist '(width . 64))
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.

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>zh-tw</string>
   <string>zh-cn</string>
   <string>ja</string>
   <string>ko</string>
  </test>
  <edit name="spacing"><int>0</int></edit>
  <edit name="globaladvance"><bool>false</bool></edit>
</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-12:spacing=0

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:

This bug has already been corrected in trunk of GNU Emacs.
http://article.gmane.org/gmane.emacs.devel/111557/



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to