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 thestringargument π’num_wcharsβ specifies the number of characters in thestringargument π’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 π«Ά
XDrawImageString(3)XDrawString(3)XDrawText(3)XmbDrawString(3)XmbDrawText(3)Xlib - C Language X Interface
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
- alpine 3.24: libx11-doc 1.8.14-r0 Β· X11
- arch rolling: libx11 1.8.14-1 Β· MIT AND X11
- nixos 26.05: libx11 1.8.14
- nixpkgs unstable: libx11 1.8.14
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms