[unicode-2] Chinese characters too small

2007-07-11 Thread Leo
I configured XTerm and Emacs to use the same font with same size as
follows:

in .Xresources:

  XTerm*faceName: xft:monospace:pixelsize=16
  XTerm*faceNameDoublesize: fzsongti
  Emacs.Font: monospace:pixelsize=16

in .emacs:

(when window-system
  (set-fontset-font (frame-parameter nil 'font)
'han '("FZSongTi" . "unicode-bmp")))

And then I compared Chinese characters in 'emacs -nw' running in xterm
and emacs running in X11. It turns out Chinese characters are
substantially smaller in Emacs running in X11.

However, C-u C-x = shows that the characters have pixelsize 16. Is this
a bug?

Here is an example:

character: 大 (22823, #o54447, #x5927)
preferred charset: chinese-gb2312 (GB2312 Chinese simplified: ISO-IR-58)
   code point: 0x3473
   syntax: wwhich means: word
 category: C:Chinese (Han) characters of 2-byte character sets 
c:Chinese h:Korean j:Japanese
   |:While filling, we can break a line at this character.
  buffer code: #xE5 #xA4 #xA7
file code: #xB4 #xF3 (encoded by coding system chinese-iso-8bit-unix)
  display: by this font (glyph code)
 fzsongti:pixelsize=16:foundry=unknown:weight=medium:slant=r:width=normal 
(#x29B3)

HTH,
-- 
Leo  (GPG Key: 9283AA3F)



___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: [unicode-2] Chinese characters too small

2007-07-11 Thread Kenichi Handa
In article <[EMAIL PROTECTED]>, Leo <[EMAIL PROTECTED]> writes:

> I configured XTerm and Emacs to use the same font with same size as
> follows:

> in .Xresources:

>   XTerm*faceName: xft:monospace:pixelsize=16
>   XTerm*faceNameDoublesize: fzsongti
>   Emacs.Font: monospace:pixelsize=16

> in .emacs:

> (when window-system
>   (set-fontset-font (frame-parameter nil 'font)
>   'han '("FZSongTi" . "unicode-bmp")))

> And then I compared Chinese characters in 'emacs -nw' running in xterm
> and emacs running in X11. It turns out Chinese characters are
> substantially smaller in Emacs running in X11.

> However, C-u C-x = shows that the characters have pixelsize 16. Is this
> a bug?

I'm not sure.  Is the font size of ASCII characters the same
in emacs and xterm?

Could you please check the actual pixel size of a Chinese
character by, for instance, xmag?

---
Kenichi Handa
[EMAIL PROTECTED]


___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: [unicode-2] Chinese characters too small

2007-07-12 Thread Leo
On 2007-07-12 03:55 +0200, Kenichi Handa wrote:
> In article <[EMAIL PROTECTED]>, Leo <[EMAIL PROTECTED]> writes:
>
>> I configured XTerm and Emacs to use the same font with same size as
>> follows:
>
>> in .Xresources:
>
>>   XTerm*faceName: xft:monospace:pixelsize=16
>>   XTerm*faceNameDoublesize: fzsongti
>>   Emacs.Font: monospace:pixelsize=16
>
>> in .emacs:
>
>> (when window-system
>>   (set-fontset-font (frame-parameter nil 'font)
>>  'han '("FZSongTi" . "unicode-bmp")))
>
>> And then I compared Chinese characters in 'emacs -nw' running in xterm
>> and emacs running in X11. It turns out Chinese characters are
>> substantially smaller in Emacs running in X11.
>
>> However, C-u C-x = shows that the characters have pixelsize 16. Is this
>> a bug?
>
> I'm not sure.  Is the font size of ASCII characters the same
> in emacs and xterm?
>
> Could you please check the actual pixel size of a Chinese
> character by, for instance, xmag?
>
> ---
> Kenichi Handa
> [EMAIL PROTECTED]

It appears that Chinese characters have pixelsize 16 in Emacs &
rxvt-unicode & gnome-terminal but have a larger pixelsize in gedit &
xterm.

I am running Fedora 7.

HTH,
-- 
Leo  (GPG Key: 9283AA3F)



___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: [unicode-2] Chinese characters too small

2007-07-12 Thread Leo
On 2007-07-12 03:55 +0200, Kenichi Handa wrote:
> I'm not sure.  Is the font size of ASCII characters the same
> in emacs and xterm?

The font size of ASCII characters are the same in emacs and xterm.

-- 
Leo  (GPG Key: 9283AA3F)


___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: [unicode-2] Chinese characters too small

2007-07-12 Thread Kenichi Handa
In article <[EMAIL PROTECTED]>, Leo <[EMAIL PROTECTED]> writes:

> It appears that Chinese characters have pixelsize 16 in Emacs &
> rxvt-unicode & gnome-terminal but have a larger pixelsize in gedit &
> xterm.

How did you specify the font pixelsize in gedit?  As far as
I know, what you set via Edit->Preferences->Font&Colors is
pointsize?

---
Kenichi Handa
[EMAIL PROTECTED]


___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: [unicode-2] Chinese characters too small

2007-07-12 Thread Zhang Wei
Leo <[EMAIL PROTECTED]> writes:

[...]

> (when window-system
>   (set-fontset-font (frame-parameter nil 'font)
>   'han '("FZSongTi" . "unicode-bmp")))

The problem is that we can't specify different pixelsize for different
script. If we specify a font in the command line:

emacs --enable-font-backend -fn "Bitstream Vera Sans Mono-14"

then all script will use 14 pixelsize font. We could specify a different
font for some scripts with `set-fontset-font', such as:

(set-fontset-font (frame-parameter nil 'font)
'han '("SimSun" . "unicode-bmp"))

but we can't change the fontsize:

(set-fontset-font (frame-parameter nil 'font)
'han '("SimSun-16" . "unicode-bmp"))

won't work. We hope `set-fontset-font' could be used for changing
fontsize also.








___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: [unicode-2] Chinese characters too small

2007-07-12 Thread Kenichi Handa
In article <[EMAIL PROTECTED]>, Zhang Wei <[EMAIL PROTECTED]> writes:

> Leo <[EMAIL PROTECTED]> writes:
> [...]

> > (when window-system
> >   (set-fontset-font (frame-parameter nil 'font)
> > 'han '("FZSongTi" . "unicode-bmp")))

> The problem is that we can't specify different pixelsize for different
> script. If we specify a font in the command line:

> emacs --enable-font-backend -fn "Bitstream Vera Sans Mono-14"

> then all script will use 14 pixelsize font.

It seems that you confuse pixelsize and pointsize.  What you
specified by the above form is "14 pointsize", not "14
pixelsize".

By the way, now --enable-font-backend is not necessary.
It's on by default.

> We could specify a different
> font for some scripts with `set-fontset-font', such as:

> (set-fontset-font (frame-parameter nil 'font)
>   'han '("SimSun" . "unicode-bmp"))

> but we can't change the fontsize:

> (set-fontset-font (frame-parameter nil 'font)
>   'han '("SimSun-16" . "unicode-bmp"))

> won't work. We hope `set-fontset-font' could be used for changing
> fontsize also.

set-fontset-font still doesn't accept fontconfig-like font
specification (it's in my todo list).

Please try this:

(set-fontset-font
 (frame-parameter nil 'font)
 'han
 "-*-SimSun-medium-r-normal--16-*-*-*-*-*-unicode-bmp")

---
Kenichi Handa
[EMAIL PROTECTED]


___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: [unicode-2] Chinese characters too small

2007-07-13 Thread Leo
On 2007-07-12 12:19 +0100, Kenichi Handa wrote:
>> It appears that Chinese characters have pixelsize 16 in Emacs &
>> rxvt-unicode & gnome-terminal but have a larger pixelsize in gedit &
>> xterm.
>
> How did you specify the font pixelsize in gedit?  As far as I know,
> what you set via Edit->Preferences->Font&Colors is pointsize?

I didn't specify pixelsize for gedit. I just make sure their ASCII
characters have the same size before comparing Chinese characters.

-- 
Leo  (GPG Key: 9283AA3F)



___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: [unicode-2] Chinese characters too small

2007-07-14 Thread Kenichi Handa
In article <[EMAIL PROTECTED]>, Leo <[EMAIL PROTECTED]> writes:

> On 2007-07-12 12:19 +0100, Kenichi Handa wrote:
>>> It appears that Chinese characters have pixelsize 16 in Emacs &
>>> rxvt-unicode & gnome-terminal but have a larger pixelsize in gedit &
xterm.
> >
> > How did you specify the font pixelsize in gedit?  As far as I know,
> > what you set via Edit->Preferences->Font&Colors is pointsize?

> I didn't specify pixelsize for gedit. I just make sure their ASCII
> characters have the same size before comparing Chinese characters.

Ah, I see.

---
Kenichi Handa
[EMAIL PROTECTED]


___
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug