* Re: master f1baa15: Fix display when a font claims large values of ascent and descent
[not found] ` <E1Z1DtZ-0002yL-5i@vcs.savannah.gnu.org>
@ 2015-06-08 17:44 ` Glenn Morris
2015-06-08 18:17 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Glenn Morris @ 2015-06-08 17:44 UTC (permalink / raw
To: emacs-devel; +Cc: Eli Zaretskii
Eli Zaretskii wrote:
> branch: master
> commit f1baa156503f089d6627171e0e9ad73bbdbb7268
[...]
> @@ -19188,6 +19200,23 @@ append_space_for_newline (struct it *it, bool default_face_p)
>
> PRODUCE_GLYPHS (it);
>
> + /* Make sure this space glyph has the right ascent and
> + descent values, or else cursor at end of line will look
> + funny. */
> + g = it->glyph_row->glyphs[TEXT_AREA] + n;
> + struct font *font = face->font ? face->font : FRAME_FONT (it->f);
> + if (n == 0 || it->glyph_row->height < font->pixel_size)
> + {
> + normal_char_ascent_descent (font, -1, &it->ascent, &it->descent);
> + it->max_ascent = it->ascent;
> + it->max_descent = it->descent;
> + /* Make sure compute_line_metrics recomputes the row height. */
> + it->glyph_row->height = 0;
> + }
> +
> + g->ascent = it->max_ascent;
> + g->descent = it->max_descent;
> +
This bit causes a warning in without-x builds, eg
http://hydra.nixos.org/build/23007744/log/raw
xdisp.c:19210:8: warning: implicit declaration of function
'normal_char_ascent_descent' [-Wimplicit-function-declaration]
normal_char_ascent_descent (font, -1, &it->ascent, &it->descent);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: master f1baa15: Fix display when a font claims large values of ascent and descent
2015-06-08 17:44 ` master f1baa15: Fix display when a font claims large values of ascent and descent Glenn Morris
@ 2015-06-08 18:17 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2015-06-08 18:17 UTC (permalink / raw
To: Glenn Morris; +Cc: emacs-devel
> From: Glenn Morris <rgm@gnu.org>
> Cc: Eli Zaretskii <eliz@gnu.org>
> Date: Mon, 08 Jun 2015 13:44:40 -0400
>
> > + /* Make sure this space glyph has the right ascent and
> > + descent values, or else cursor at end of line will look
> > + funny. */
> > + g = it->glyph_row->glyphs[TEXT_AREA] + n;
> > + struct font *font = face->font ? face->font : FRAME_FONT (it->f);
> > + if (n == 0 || it->glyph_row->height < font->pixel_size)
> > + {
> > + normal_char_ascent_descent (font, -1, &it->ascent, &it->descent);
> > + it->max_ascent = it->ascent;
> > + it->max_descent = it->descent;
> > + /* Make sure compute_line_metrics recomputes the row height. */
> > + it->glyph_row->height = 0;
> > + }
> > +
> > + g->ascent = it->max_ascent;
> > + g->descent = it->max_descent;
> > +
>
> This bit causes a warning in without-x builds, eg
> http://hydra.nixos.org/build/23007744/log/raw
>
> xdisp.c:19210:8: warning: implicit declaration of function
> 'normal_char_ascent_descent' [-Wimplicit-function-declaration]
> normal_char_ascent_descent (font, -1, &it->ascent, &it->descent);
(And will fail during linking if you build with -O0, I presume.)
Thanks, I think I fixed that in 55200b4.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-08 18:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20150606131216.11369.14106@vcs.savannah.gnu.org>
[not found] ` <E1Z1DtZ-0002yL-5i@vcs.savannah.gnu.org>
2015-06-08 17:44 ` master f1baa15: Fix display when a font claims large values of ascent and descent Glenn Morris
2015-06-08 18:17 ` Eli Zaretskii
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.