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 a Font or GContext argument does not name a defined Font. so if the font isn’t actually a defined font, yeah, that’s a whole thing πŸ™ˆ
  • BadGC β€” A value for a GContext argument does not name a defined GContext. same vibe check, but for the GC πŸ’œ

πŸ‘‘ SEE ALSO πŸ‘‘

go read these too, iykyk:


signing off from X Version 11, libX11 1.8.14, on the XSetFont(3) page β€” mwah, slay, bye bestie πŸ’‹πŸŽ€πŸ’–

πŸ“¦ where this page comes from