1 /* $Id: fontsel.h,v 1.5 2001/10/21 15:13:07 tringali Exp $ */
2 /*******************************************************************************
7 * Function to put up a modal font selection dialog box. The purpose *
8 * of this routine is to allow the user to interactively view sample *
9 * fonts and to choose a font for current use. *
13 * Widget parent - parent widget ID *
15 * int showPropFont - ONLY_FIXED : shows only fixed fonts *
16 * doesn't show prop font *
17 * toggle button also. *
18 * PREF_FIXED : can select either fixed *
19 * or proportional fonts; *
20 * but starting option is *
22 * PREF_PROP : can select either fixed *
23 * or proportional fonts; *
24 * but starting option is *
25 * proportional fonts. *
27 * char * currFont - ASCII string that contains the name *
28 * of the currently selected font. *
32 * pointer to an ASCII character string that contains the name of *
33 * the selected font (in X format for naming fonts); it is the users *
34 * responsibility to free the space allocated to this string. *
38 * The calling function has to call the appropriate routines to set *
39 * the current font to the one represented by the returned string. *
41 *******************************************************************************/
43 /* constant values for controlling the proportional font toggle */
50 /* function prototype */
52 char *FontSel(Widget parent
, int showPropFont
, const char *currFont
);