* emacs fontset combination problem
@ 2009-08-03 8:17 Kiwon Um
2009-08-04 0:33 ` S.P.Tseng
2009-08-05 1:40 ` Liang Wang
0 siblings, 2 replies; 3+ messages in thread
From: Kiwon Um @ 2009-08-03 8:17 UTC (permalink / raw
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 2361 bytes --]
Dear GNU emacs dev team.
Hello. I posted a message on the google's emacs.help group. But it seems
not to exist any good solution now, so I send it as a quotation:
> Hello. Let's discuss about follows.
>
> When we use a combination font-setting of over two fonts in
> emacs, it may be due to the multi-language editing
> support. Those different fonts have varieties in their size,
> e.g. many Asian glyphs occupy double width space of an
> alphabet. (Even though the wide font is not perfectly double
> wide space of one alphabet, many users want that the occupied
> size of one wide character such as Asian character to be exactly
> same with two alphabet characters, namely fixed font setting)
>
> However, we must consider the line spacing, I mean the height of
> the fonts. Although the width between different fonts have
> variation along each other, the height (or line spacing) should
> keep same, or, it would be better to allow user to be able to
> set the base height, IMO.
>
> If it's not, to keep the consistency in the height spacing with
> various widths (size settings) of fonts, emacs needs to check the
> largest height value along each specified
> charset (i.e. fontset). Currently, emacs seems to set the base
> height to the value of the default fontset. Then, if the height
> value of other user-specified charset's font is larger, for line
> having those fonts, it may cause inconsistent result in line
> spacing. (This is exactly now happening.)
>
> So, how can user specify different fontsets with different sizes
> for each, but with consistent height? As you all already know,
> users can set the line-spacing value to control the space between
> lines. But this works only for the space between lines, not for
> the height of a line itself.
>
> Here is one case with the problem:
> (set-face-font 'default (font-spec :family "terminus" :size 14))
> (set-fontset-font nil 'korean-ksc5601
> (font-spec :family "Guseul" :registry "unicode-
> bmp" :lang "ko" :size 16)))
>
> Thanks.
FYI, I attached a figure about what I mean, additionally so you can
check it easily. I'm using emacs-cvs version 23.1.50.
I think the flexibility of font combination in emacs is one of powerful
functionality others haven't. Thanks for your efforts to keep such a
good functionality.
--
Best regards,
Kiwon Um
[-- Attachment #2: fontonemacs.png --]
[-- Type: image/png, Size: 1239 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: emacs fontset combination problem
2009-08-03 8:17 emacs fontset combination problem Kiwon Um
@ 2009-08-04 0:33 ` S.P.Tseng
2009-08-05 1:40 ` Liang Wang
1 sibling, 0 replies; 3+ messages in thread
From: S.P.Tseng @ 2009-08-04 0:33 UTC (permalink / raw
To: emacs-devel
AFAIK, gvim and rxvt-unicode set the base height to the value of the default
fontset (usually the height of ASCII characters). As to Asian characters with
doulble-width, if its width is smaller than double width of ASCII characters,
they will keep the same height with the height of ASCII character, but increase
the spacing to let its width equal to the width of two ASCII characters.
Kiwon Um <um.kiwon@gmail.com> writes:
>> Hello. Let's discuss about follows.
>>
>> When we use a combination font-setting of over two fonts in
>> emacs, it may be due to the multi-language editing
>> support. Those different fonts have varieties in their size,
>> e.g. many Asian glyphs occupy double width space of an
>> alphabet. (Even though the wide font is not perfectly double
>> wide space of one alphabet, many users want that the occupied
>> size of one wide character such as Asian character to be exactly
>> same with two alphabet characters, namely fixed font setting)
>>
>> However, we must consider the line spacing, I mean the height of
>> the fonts. Although the width between different fonts have
>> variation along each other, the height (or line spacing) should
>> keep same, or, it would be better to allow user to be able to
>> set the base height, IMO.
>>
>> If it's not, to keep the consistency in the height spacing with
>> various widths (size settings) of fonts, emacs needs to check the
>> largest height value along each specified
>> charset (i.e. fontset). Currently, emacs seems to set the base
>> height to the value of the default fontset. Then, if the height
>> value of other user-specified charset's font is larger, for line
>> having those fonts, it may cause inconsistent result in line
>> spacing. (This is exactly now happening.)
>>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: emacs fontset combination problem
2009-08-03 8:17 emacs fontset combination problem Kiwon Um
2009-08-04 0:33 ` S.P.Tseng
@ 2009-08-05 1:40 ` Liang Wang
1 sibling, 0 replies; 3+ messages in thread
From: Liang Wang @ 2009-08-05 1:40 UTC (permalink / raw
To: Kiwon Um; +Cc: emacs-devel
On Mon, Aug 3, 2009 at 4:17 PM, Kiwon Um<um.kiwon@gmail.com> wrote:
> Dear GNU emacs dev team.
>
> Hello. I posted a message on the google's emacs.help group. But it seems not
> to exist any good solution now, so I send it as a quotation:
>
>> Hello. Let's discuss about follows.
>>
>> When we use a combination font-setting of over two fonts in
>> emacs, it may be due to the multi-language editing
>> support. Those different fonts have varieties in their size,
>> e.g. many Asian glyphs occupy double width space of an
>> alphabet. (Even though the wide font is not perfectly double
>> wide space of one alphabet, many users want that the occupied
>> size of one wide character such as Asian character to be exactly
>> same with two alphabet characters, namely fixed font setting)
The assumption that Chinese characters occupy double width space of an
alphabet has annoyed me for a long time. When this assumption is not
true, the result of auto-fill-mode and org-mode table looks mess. To
work around it, I have to use bigger Chinese characters and smaller
ascii. Then, I have problem you mentioned.
Thanks,
Liang.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-08-05 1:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-03 8:17 emacs fontset combination problem Kiwon Um
2009-08-04 0:33 ` S.P.Tseng
2009-08-05 1:40 ` Liang Wang
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.