1. NAME

XSetFont - GC convenience routines

2. SYNTAX

int XSetFont(Display *display, GC gc, Font font);

3. ARGUMENTS

display 1i Specifies the connection to the X server.

font 1i Specifies the font.

gc 1i Specifies the GC.

4. DESCRIPTION

The .ZN XSetFont function sets the current font in the specified GC.

.ZN XSetFont can generate .ZN BadAlloc , .ZN BadFont , and .ZN BadGC errors.

5. DIAGNOSTICS

  • .ZN BadAlloc
     The server failed to allocate the requested resource or server memory.
  • .ZN BadFont
     A value for a Font or GContext argument does not name a defined Font.
  • .ZN BadGC
     A value for a GContext argument does not name a defined GContext.

6. SEE ALSO