From: Werner LEMBERG <wl@gnu.org>
To: eliz@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: enforcing double-width CJK character display
Date: Sun, 24 Jul 2011 15:17:58 +0200 (CEST) [thread overview]
Message-ID: <20110724.151758.438658364.wl@gnu.org> (raw)
In-Reply-To: <E1Qky5R-0008Is-4o@fencepost.gnu.org>
>> within, say, konsole 2.6.4 (from KDE 4.6.5), the character width of
>> double-width CJK characters is forced to be exactly twice the width
>> of the used console font, as expected. Is there a similar option
>> to emacs? For example, my main Emacs font is `DejaVu Sans Mono',
>> and the font selected for Japanese is `Sazanami Mincho', and the
>> latter's character width is smaller...
>
> Does "C-x =" tell you that Emacs counts each Japanese character as 2
> columns?
Yes.
> If it does, then the issue is with selecting a better font, is that
> right?
Essentially yes. However, the question is what you define as `better'
-- I'm talking about scalable fonts, of course, not about bitmap
fonts. There are two possibilities:
1. scale the CJK font so that its (CJK) glyphs are exactly the
double width of a given mono-width font
2. pad the CJK font horizontally with space around each CJK
character
I tend towards solution 2 and I wonder whether Emacs already provides
a means to do that, or maybe this can be handled on the FontConfig
level.
Werner
next prev parent reply other threads:[~2011-07-24 13:17 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-24 12:40 enforcing double-width CJK character display Werner LEMBERG
2011-07-24 12:47 ` Eli Zaretskii
2011-07-24 13:17 ` Werner LEMBERG [this message]
2011-07-24 13:39 ` Kan-Ru Chen
2011-07-24 14:01 ` Werner LEMBERG
2011-07-24 14:38 ` Kan-Ru Chen
2011-07-24 15:59 ` Štěpán Němec
2011-07-24 17:01 ` Eli Zaretskii
2011-11-11 8:49 ` Kan-Ru Chen
2011-12-01 9:55 ` Werner LEMBERG
2011-12-01 14:00 ` Kan-Ru Chen
2011-12-01 20:04 ` Werner LEMBERG
2011-07-26 5:48 ` Ivan Kanis
2011-07-26 20:13 ` Werner LEMBERG
2011-07-26 20:27 ` Eli Zaretskii
2011-07-27 0:14 ` David De La Harpe Golden
2011-07-27 4:27 ` Werner LEMBERG
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110724.151758.438658364.wl@gnu.org \
--to=wl@gnu.org \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.