|
From: | Feng Shu |
Subject: | Re: Any new method to deal with Emacs Fonts settings puzzles nearly every Chinese emacser? |
Date: | Sun, 14 Nov 2021 08:18:49 +0800 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
"Feng Shu" <tumashu@163.com> writes: > Phil Sainty <psainty@orcon.net.nz> writes: > >> On 2021-11-14 04:21, Eli Zaretskii wrote: >>> On GUI frames Emacs takes the width of each character in pixels from >>> the font that is being used. >> >> Potentially Emacs could provide a defcustom mapping of fonts to minimum >> character widths, and if the actual width of any character is less than >> the customized minimum then the (larger) minimum width is used instead >> (I guess padding either side of the character). > > Maybe we just need a padding api, and let user control the number px or > pecent of > padding. What about: (font-spec :name "Microsoft Yahei" :padding 2) Mean Micorsoft Yahei will pad 2px to 1 char when showed?
[Prev in Thread] | Current Thread | [Next in Thread] |