emacs-devel
[Top][All Lists]
Advanced

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

Re: Patch to vertically center line content when using line-spacing vari


From: Jesse Medeiros
Subject: Re: Patch to vertically center line content when using line-spacing variable
Date: Sun, 29 Sep 2019 20:54:01 -0300

>     Jesse> diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi
>     Jesse> index 618ea16fcf..75a6725f03 100644
>     Jesse> --- a/doc/lispref/frames.texi
>     Jesse> +++ b/doc/lispref/frames.texi
>     Jesse> @@ -1857,6 +1857,11 @@ Layout Parameters
>     Jesse>  Additional space to leave below each text line, in pixels (a 
> positive
>     Jesse>  integer).  @xref{Line Height}, for more information.
>
>     Jesse> +@vindex line-spacing-vertical-center@r{, a frame parameter}
>     Jesse> +@item line-spacing-vertical-center
>     Jesse> +If non-nil, centers the line content vertically when using
>     Jesse> +using the @code{line-spacing} variable.
>     Jesse> +
>
> I donʼt think you implemented this as a frame parameter, which means the
> documentation should go in "@node Line Height" in display.texi, or you
> could implement the frame parameter as well. [1]
>
>     Jesse>    if (extra_line_spacing > 0)
>     Jesse>      {
>     Jesse> -      it->descent += extra_line_spacing;
>     Jesse> +      if (! BVAR (XBUFFER (it->w->contents), 
> line_spacing_vertical_center))
>
> I think this currently works because Qnil == 0, for now, but you should
> probably use NILP.

I've worked the on these issues you raised. Hopefully it's all ok now.

Attachment: 0001-Center-lines-vertically-with-line-spacing-vertical-c.patch
Description: Text Data


reply via email to

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