GNU bug report logs - #10179
24.0.91; enforcing double-width CJK character display

Previous Next

Package: emacs;

Reported by: Kan-Ru Chen <kanru <at> kanru.info>

Date: Thu, 1 Dec 2011 13:28:02 UTC

Severity: normal

Found in version 24.0.91

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Kan-Ru Chen <kanru <at> kanru.info>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.91; enforcing double-width CJK character display
Date: Thu, 01 Dec 2011 21:26:31 +0800
Discussion was started by Werner LEMBERG in this thread:

https://lists.gnu.org/archive/html/emacs-devel/2011-07/msg00938.html

Currently Emacs chooses fonts that has width close to the width of
the default font. But the font may have smaller advance width so a
double width character will not be rendered as wide as twice of a latin
character.

I set `face-font-rescale-alist' for every font that might be used as a
workaround:

  (setq face-font-rescale-alist
        '(("WenQuanYi Micro Hei" . 1.2)
          ("cwTexYen" . 1.35)
          ("AR Heiti Light B5" . 1.2)))

Ideally this should be calculated and applied automatically (I believe
the information has been exported to lisp but haven't find a good way to
manipulate the font-object) or the display engine should add padding to
double-width font so they are rendered nicely.

-- 
Kanru




This bug report was last modified 13 years and 197 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.