The XFONT function creates a modal widget for selecting and viewing an X Windows font. The function returns a string containing the name of the last selected font. If no font is selected, or the "Cancel" button is clicked, a null string is returned.

Calling XFONT resets the current X Windows font.

This routine is written in the IDL language. Its source code can be found in the file xfont.pro in the lib subdirectory of the IDL distribution.

Calling Sequence

Result = XFONT()



The widget ID of the widget that calls XFONT. When this ID is specified, the death of the caller results in the death of XFONT.


Set this keyword to make XFONT save the server font directory in common blocks so that subsequent calls to XFONT start-up much faster. If this keyword is not set, the common block is cleaned.

See Also