emacs-devel
[Top][All Lists]
Advanced

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

Re: Variable pitch text filling


From: Eli Zaretskii
Subject: Re: Variable pitch text filling
Date: Sat, 27 Nov 2021 21:36:32 +0200

> Date: Sat, 27 Nov 2021 16:55:47 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: emacs-devel@gnu.org
> 
> > > What would be the exact meaning of "char-spacing 1.0" here?  IOW, how
> > > would we compute the number of pixels to add to each glyph's width in
> > > this case? what is a "normal character" for this purpose?
> > 
> > It's the same as for all these width specs -- it's FRAME_COLUMN_WIDTH.
> 
> That's not the best possibility, because if some part of the affected
> text uses a smaller font, you'd see glyphs that are too-widely spaced?

I think a better idea is to use the width of the face's ASCII font (or
its average width, if that's a variable-pitch face).  Then everything
will scale as expected with the face's height.



reply via email to

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