emacs-diffs
[Top][All Lists]
Advanced

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

master 0970684: Fix GNUstep build (ns_compute_glyph_string_overhangs)


From: Lars Ingebrigtsen
Subject: master 0970684: Fix GNUstep build (ns_compute_glyph_string_overhangs)
Date: Fri, 5 Nov 2021 18:24:39 -0400 (EDT)

branch: master
commit 0970684011962a7bda6b5b27578f2877dcfc914d
Author: Daniel Martín <mardani29@yahoo.es>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix GNUstep build (ns_compute_glyph_string_overhangs)
    
    * src/nsterm.m (ns_compute_glyph_string_overhangs): Declare the font
    variable so that it's in scope for the GNUstep code.
---
 src/nsterm.m | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/nsterm.m b/src/nsterm.m
index f3dd0d7..54989a2 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -2849,12 +2849,13 @@ ns_compute_glyph_string_overhangs (struct glyph_string 
*s)
      External (RIF); compute left/right overhang of whole string and set in s
    -------------------------------------------------------------------------- 
*/
 {
+  struct font *font = s->font;
+
   if (s->char2b)
     {
       struct font_metrics metrics;
       if (s->first_glyph->type == CHAR_GLYPH && !s->font_not_found_p)
         {
-          struct font *font = s->font;
           font->driver->text_extents (font, s->char2b, s->nchars, &metrics);
           s->left_overhang = -metrics.lbearing;
           s->right_overhang



reply via email to

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