XFONT

The XFONT function is a utility that creates a modal widget for selecting and viewing an X Windows font.

Calling XFONT resets the current X Windows font.

Note: This routine is only available on UNIX platforms.

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

Syntax

Result = XFONT( [, GROUP=widget_id] [, /PRESERVE_FONT_INFO] )

Return Value

The function returns a string containing the name of the last selected font. If no font is selected, or the “Cancel” button is clicked, an empty string is returned.

Arguments

None.

Keywords

GROUP

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.

PRESERVE_FONT_INFO

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.

Version History

Pre-4.0

Introduced

See Also

EFONT, SHOWFONT