XSetFont(3)
π XSetFont π
okay bestie, this is the XSetFont(3) page β literally the manual for the XSetFont function, and it's giving βGC convenience routinesβ energy β¨
π SYNTAX π
int XSetFont(Display *display, GC gc, Font font);
π ARGUMENTS π
displayβ Specifies the connection to the X server. iconic, necessary, we love her π«Άfontβ Specifies the font. yes bestie, the font itself πgcβ Specifies the GC. thatβs the graphics context, main character energy π₯
π¦ DESCRIPTION π¦
The XSetFont function sets the current font in the specified GC. periodt π
Heads up though: XSetFont can generate BadAlloc, BadFont, and BadGC errors. not me being dramatic, thatβs just literally what the page says π
πΈ DIAGNOSTICS πΈ
BadAllocβ The server failed to allocate the requested resource or server memory. rough, ngl πBadFontβ A value for aFontorGContextargument does not name a definedFont. so if the font isnβt actually a defined font, yeah, thatβs a whole thing πBadGCβ A value for aGContextargument does not name a definedGContext. same vibe check, but for the GC π
π SEE ALSO π
go read these too, iykyk:
XCreateGC(3)XQueryBestSize(3)XSetArcMode(3)XSetClipOrigin(3)XSetFillStyle(3)XSetLineAttributes(3)XSetState(3)XSetTile(3)Xlib - C Language X Interface
signing off from X Version 11, libX11 1.8.14, on the XSetFont(3) page β mwah, slay, bye bestie πππ
π¦ 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