Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XSetFont(3x) — HP-UX 9.05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

NAME

XSetFont − set the current font in a graphics context. 

Synopsis

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

Arguments

displaySpecifies a connection to an X server; returned from XOpenDisplay(). 

gcSpecifies the graphics context. 

fontSpecifies 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(), XFreeFontPath(), XGetFontPath(), XGetFontProperty(), XListFonts(), XListFontsWithInfo(), XLoadFont(), XLoadQueryFont(), XQueryFont(), XSetFontPath(), XUnloadFont(). 

Copyright O’Reilly & Assoc.  —  

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026