--- texfont.c.orig	2025-10-10 11:07:08.399780010 -0500
+++ texfont.c	2025-10-10 11:09:44.550428965 -0500
@@ -1151,22 +1151,40 @@
    Assumes the font has been loaded as with load_texture_font().
 
    Position is 0 for center, 1 for top left, 2 for bottom left.
  */
 void
 print_texture_label (Display *dpy,
                      texture_font_data *data,
                      int window_width, int window_height,
                      int position,
                      const char *string)
 {
+  print_texture_label_with_offset(dpy, data, window_width, window_height, position, string, 0, 0);
+}
+
+/* Draws the string on the window at the given pixel position.
+   Newlines and tab stops are honored.
+   Any numbers inside [] will be rendered as a subscript.
+   Assumes the font has been loaded as with load_texture_font().
+
+   Position is 0 for center, 1 for top left, 2 for bottom left.
+ */
+void
+print_texture_label_with_offset (Display *dpy,
+                     texture_font_data *data,
+                     int window_width, int window_height,
+                     int position,
+                     const char *string,
+                     int x_offset, int y_offset)
+{
   GLfloat color[4] = { 1, 1, 1, 1 };
   Bool tex_p = False, texs_p = False, text_p = False;
   Bool depth_p = False, fog_p = False, cull_p = False;
   GLint ovp[4];
   GLfloat proj_mat[16];
 # ifndef HAVE_JWZGLES
   GLint opoly[2];
 # endif
 
   cull_p = glIsEnabled (GL_CULL_FACE);
   depth_p = glIsEnabled (GL_DEPTH_TEST);
@@ -1319,22 +1337,24 @@
     case 1:					/* top */
       x = ascent;
       y = window_height - ascent*2;
       break;
     case 2:					/* bottom */
       x = ascent;
       y = h;
       break;
     default:
       abort();
     }
+    x += x_offset;
+    y += y_offset;
 
     texfont_transrot (data, proj_mat,
                       x, y, 0,
                       0, 0, 0, 1);
 
     /* draw the text five times, to give it a border. */
     {
       const XPoint offsets[] = {{ -1, -1 },
                                 { -1,  1 },
                                 {  1,  1 },
                                 {  1, -1 },
