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

To reply to this bug, email your comments to 10179 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#10179; Package emacs. (Thu, 01 Dec 2011 13:28:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kan-Ru Chen <kanru <at> kanru.info>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 01 Dec 2011 13:28:02 GMT) Full text and rfc822 format available.

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10179; Package emacs. (Thu, 01 Dec 2011 20:09:01 GMT) Full text and rfc822 format available.

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

From: Werner LEMBERG <wl <at> gnu.org>
To: kanru <at> kanru.info
Cc: 10179 <at> debbugs.gnu.org
Subject: Re: bug#10179: 24.0.91; enforcing double-width CJK character display
Date: Thu, 01 Dec 2011 21:08:29 +0100 (CET)
Just to have the wishes directly visible in this bug report:

Another important parameter to configure is glyph padding since
scaling makes Emacs display CJK characters very slowly on X11 (before
the glyphs get cached).  Additionally, lines with such scaled glyphs
become too high, causing irregular line spacing.


    Werner




This bug report was last modified 12 years and 142 days ago.

Previous Next


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