XmbDrawImageString(3)

πŸ’– XmbDrawImageString(3) β€” XLIB FUNCTIONS πŸ’–

okay so bestie, welcome to the XLIB FUNCTIONS page for XmbDrawImageString(3) β€” it’s literally the β€œdraw image text using a single font set” trio, and it’s giving single-font-set main character energy πŸ’…βœ¨. The main characters are XmbDrawImageString, XwcDrawImageString, and Xutf8DrawImageString, and yes they all show up below, no cap 🌸.


πŸŽ€ NAME πŸŽ€

XmbDrawImageString, XwcDrawImageString, Xutf8DrawImageString β€” draw image text using a single font set 🌸

✨ SYNTAX ✨

okay here are the signatures, exactly as written, do not come for me about the wrap job 😭:

       void XmbDrawImageString(Display *display, Drawable d, XFontSet font_set,
              GC gc, int x, int y, _Xconst char *string, int num_bytes);

       void XwcDrawImageString(Display *display, Drawable d, XFontSet font_set,
              GC gc, int x, int y, _Xconst wchar_t *string, int num_wchars);

       void Xutf8DrawImageString(Display *display, Drawable d, XFontSet
              font_set, GC gc, int x, int y, _Xconst char *string, int
              num_bytes);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • d β€” specifies the drawable πŸ’…
  • display β€” specifies the connection to the X server πŸ”Œ
  • font_set β€” specifies the font set πŸ”€
  • gc β€” specifies the GC ✨
  • num_bytes β€” specifies the number of bytes in the string argument πŸ”’
  • num_wchars β€” specifies the number of characters in the string argument πŸ”’
  • string β€” specifies the character string πŸ“
  • x, y β€” specify the x and y coordinates πŸ“

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so the way these work: XmbDrawImageString, XwcDrawImageString, and Xutf8DrawImageString fill a destination rectangle with the background pixel defined in the GC and then paint the text with the foreground pixel. πŸ’– The filled rectangle is the rectangle returned to overall_logical_return by XmbTextExtents, XwcTextExtents, or Xutf8TextExtents for the same text and XFontSet. Like, that is the exact rectangle, periodt.

When the XFontSet has missing charsets, each unavailable character is drawn with the default string returned by XCreateFontSet. 🌈

⚠️ the behavior for an invalid codepoint is undefined. Not β€œprobably fine”, not β€œtry it and see” β€” undefined, bestie πŸ˜­πŸ’€.

The function Xutf8TextExtents is an extension introduced by The XFree86 Project, Inc., in their 4.0.2 release. Its presence is indicated by the macro X_HAVE_UTF8_STRING. πŸ‘‘

🫢 SEE ALSO 🫢


okay bye bestie 🫢 this page is signed off with X Version 11, libX11 1.8.14, and XmbDrawImageString(3) β€” iconic footer energy, fr fr πŸ’–βœ¨

πŸ“¦ where this page comes from