XLoadFont man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

XLoadFont()							   XLoadFont()

Name
  XLoadFont – load a font if not already loaded; get font ID.

Synopsis
  Font XLoadFont(display, name)
	Display *display;
	char *name;

Arguments
  display   Specifies	a  connection  to  an  X  server;  returned  from
	    XOpenDisplay().

  name	    Specifies the name of the font in a	 NULL-terminated  string.
	    As of Release 4, the * and ? wildcards are allowed and may be
	    supported by the  server.	Uppercase  or  lowercase  is  not
	    important.	 If  the  font	name  is not in the Host Portable
	    Character Encoding, the result is implementation-dependent.

Returns
  The Font ID.

Description
  XLoadFont() loads a font into the server if it  has  not  already  been
  loaded  by  another  client.	XLoadFont() returns the font ID or, if it
  was unsuccessful, generates a BadName	 error.	  When	the  font  is  no
  longer  needed,  the	client	should call XUnloadFont().  Fonts are not
  associated with a particular screen.	Once the font ID is available, it
  can be set in the font member of any GC, and thereby used in subsequent
  drawing requests.

  Font information is usually necessary	 for  locating	the  text.   Call
  XLoadFontWithInfo()  to  get the info at the time you load the font, or
  call XQueryFont() if you used XLoadFont() to load the font.

  For more information on fonts,  see  Volume  One,  Chapter  6,  Drawing
  Graphics and Text.

Errors
  BadAlloc  Server has insufficient memory to store font.

  BadName   name specifies an unavailable font.

See Also
  XCreateFontCursor(),	XFreeFont(),  XFreeFontInfo(),	XFreeFontNames(),
  XFreeFontPath(),  XGetFontPath(),   XGetFontProperty(),   XListFonts(),
  XListFontsWithInfo(), XLoadQueryFont(), XQueryFont(), XSetFont(), XSet‐
  FontPath(), XUnloadFont().

Xlib - Fonts							   XLoadFont()
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net