[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: U+2026 HORIZONTAL ELLIPSIS $B!D(B is messing up table columns in emacs-w3m
- From: Katsumi Yamaoka <yamaoka@xxxxxxx>
- Date: Thu, 30 Jan 2014 12:41:12 +0900
- X-ml-name: emacs-w3m
- X-mail-count: 12280
- References: <8761p22spj.fsf@xxxxxxxxxxx>
In [emacs-w3m : No.12279] jidanni@xxxxxxxxxxx wrote:
> U+2026 HORIZONTAL ELLIPSIS … is messing up table column spacing in
> emacs-w3m but is fine in w3m.
I'm not familiar with the way how Emacs chooses a font for
a certain character according to the language environment.
In my system (now it's Cygwin), it normally chooses the font
below for the character "…".
-sony-fixed-medium-r-normal--16-120-100-100-c-160-jisx0208.1983-0
(To see the font name, do `C-u C-x =' on the character.)
It's a wide character. However, in `emacs -Q', it chooses:
-bitstream-Bitstream Vera Sans Mono-normal-normal-normal-*-14-*-*-*-m-0-iso10646-1
It's the same width as alphanumeric characters, not a wide
character.
If you want to change the font for only certain character(s),
a way I only know is:
(set-fontset-font
(face-attribute 'default :fontset)
'(?\x2026 . ?\x2026)
"-bitstream-Bitstream Vera Sans Mono-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1")
Note that the second arg of `set-fontset-font' allows a range of
characters; see the docstring.