[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any new method to deal with Emacs Fonts settings puzzles nearly ever

From: Eli Zaretskii
Subject: Re: Any new method to deal with Emacs Fonts settings puzzles nearly every Chinese emacser?
Date: Sat, 13 Nov 2021 17:21:13 +0200

> Date: Sat, 13 Nov 2021 22:36:11 +0800 (CST)
> From: tumashu <tumashu@163.com>
> Hello everyone:
>    (1)    How to let A Chinese char width = 2 * Ascii char width is an 
> eternal topic for Chinese new emacser.

On GUI frames Emacs takes the width of each character in pixels from
the font that is being used.  So if you want each Chinese character to
take exactly 2 character cells of an ASCII character, you need to find
a pair of fonts that satisfy this relation.  Because the font used for
ASCII varies between users, and the font used for Chinese probably
varies as well, I don't think I see how Emacs can solve this problem,
because Emacs doesn't understand the significance of each font.

> it let all Chinese new users and many old users puzzle a lot, that is the 
> reason my cnfonts package (a Chinese fonts setup utils) get >600 github star.
> recent day, we talk about Emacs fonts, so I want to know, is it possible 
> provide a feature in emacs core to solve this problem?

Which problem is that?  The 2 questions you asked or something else?

> The two question is that: How to force set min line-width to a value?

What do you mean by "min line-width" here?

> Chinese emaser use will use two fonts generally, a Ascii fonts and A Chinese 
> fonts.
> Two fonts will use different height to let 1 Chinese Char width = 2 * Ascii 
> char width,  but this set will get other problem:
>      (2)                     Chinese char Height > Ascii char height,
> The results is that head-line, mode-line and minibuffer's height will shark 
> (change frequently depend Chinese char exist or not).
> it looks very very ugly.

Did you try to set the line-height text property on the newline of
each line?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]