-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: rxvt-unicode-sixel
action: commit
revision:
path_from:
revision_from: 8cf8107b6604be106ec4ef8e102350e69d0a82fa:
path_to:
revision_to:

git.thebackupbox.net

rxvt-unicode-sixel

git://git.thebackupbox.net/rxvt-unicode-sixel

commit 8cf8107b6604be106ec4ef8e102350e69d0a82fa
Author: Marc Lehmann <schmorp@schmorp.de>
Date:   Fri Dec 26 08:18:45 2003 +0000

    *** empty log message ***

diff --git a/src/defaultfont.C b/src/defaultfont.C

index e4029b88149afe6ce9d114566fbee4f4a65dc139..

index ..5bb0e621f9f556ca2cf55f89ef8b1ad2bb91b6bf 100644

--- a/src/defaultfont.C
+++ b/src/defaultfont.C
@@ -917,18 +917,22 @@ rxvt_font_xft::draw (int x, int y,
         {
           if (*text != NOCHAR && *text != ' ')
             {
+              int fwidth = r->TermWin.fwidth;
+              if (len >= 2 && text[1] == NOCHAR)
+                fwidth *= 2;
+
               XGlyphInfo extents;
               if (sizeof (text_t) == sizeof (FcChar16))
                 {
                   XftTextExtents16 (DISPLAY, f, (const FcChar16 *)text, 1, &extents);
-                  XftDrawString16 (d, &r->PixColors[fg].c, f, x + extents.x + (r->TermWin.fwidth - extents.width) / 2,
+                  XftDrawString16 (d, &r->PixColors[fg].c, f, x + extents.x + (fwidth - extents.width) / 2,
                                    y + r->TermWin.fbase, (const FcChar16 *)text, 1);
                 }
               else
                 {
                   XGlyphInfo extents;
                   XftTextExtents32 (DISPLAY, f, (const FcChar32 *)text, 1, &extents);
-                  XftDrawString32 (d, &r->PixColors[fg].c, f, x + extents.x + (r->TermWin.fwidth - extents.width) / 2,
+                  XftDrawString32 (d, &r->PixColors[fg].c, f, x + extents.x + (fwidth - extents.width) / 2,
                                    y + r->TermWin.fbase, (const FcChar32 *)text, 1);
                 }
             }
@@ -1088,6 +1092,7 @@ rxvt_fontset::populate (const char *desc)
   // we currently need a base-font, no matter what
   if (fonts.size () <= base_id || !realize_font (base_id))
     {
+      puts ("unable to load specified font(s), falling back to 'fixed'\n");
       add_fonts ("fixed");
       base_id = fonts.size () - 1;
     }

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 11:33:43 2024