** Description changed:

+ 
+ 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
  
- DESCRIPTION:
- 
- With Takao Gothic in use, Emacs frames are shown twice as wide as it
- supposed to be.
- 
- For example, if you write
+ 2) Set 
   (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.
  
+ SOLUTION:
+ a) Apply patch.
+ http://debbugs.gnu.org/cgi-bin/bugreport.cgi?bug=4129
+ 
http://repo.or.cz/w/emacs.git/commitdiff/4598ad269c5402e99604c702825cb8963c693402
+ 
+ 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>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:
  
  There are some people discussing this issue on the Internet, but not in
  Launchpad.
  
  - 
http://garakuta.homelinux.org/~nosuke/diary/diary.html?y=2008&m=10&d=15&n=1#15-2
  - http://d.hatena.ne.jp/curare/20090811/1249966864
  
  =====================================================================
- Affected Packages: emacs23, emacs-snapshot
- 
- ToDo >  mizuno-as
-  - Test with Maverick, can it reproduce? (maybe yes, ignorable)
-  - Check Debian BTS, if not exists, please report it.  
-  - Justify sync request for emacs23/emacs-snaphost.
-  - SRU for Lucid (+ Karmic?)

-- 
Emacs frames are shown too wide with Takao gothic font
https://bugs.launchpad.net/bugs/596423
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to