XSetFont() XSetFont()
Name
XSetFont - set the current font in a graphics context.
Synopsis
XSetFont(display, gc, font)
Display *display;
GC gc;
Font font;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
gc Specifies the graphics context.
font Specifies the ID of the font to be used.
Description
XSetFont() sets the font in the GC. Text drawing requests using this GC will use this font only if the font is loaded. Otherwise, the
text will not be drawn.
For more information, see Volume One, Chapter 5, The Graphics Context.
Errors
BadAlloc
BadFont
BadGC
See Also
XCreateFontCursor(), XFreeFont(), XFreeFontInfo(), XFreeFontNames(), XFreeFontPath(), XGetFontPath(), XGetFontProperty(), XListFonts(),
XListFontsWithInfo(), XLoadFont(), XLoadQueryFont(), XQueryFont(), XSetFontPath(), XUnloadFont().
Xlib - Fonts XSetFont()