FACT++  1.0
XmFontList util_get_font ( char *  fontname,
Widget  top 
)

Definition at line 89 of file didMarkus.c.

Referenced by gui_initialize().

90 {
91 XFontStruct * mf;
92 XmFontList font;
93 /*
94 char * fontname;
95 
96  if ( size == 'm' ) {
97  fontname = MENU_FONT;
98  }
99  else if ( size == 'b' ) {
100  fontname = LABEL_FONT;
101  }
102  else {
103  fontname = DEFAULT_FONT;
104  }
105 */
106  if ( (mf = XLoadQueryFont(XtDisplay(top),fontname))==NULL) {
107  printf("Couldn't open the following fonts:\n\t%s\n",
108  fontname);
109  XtVaGetValues ( top, XmNdefaultFontList, &font, NULL );
110  }
111  else {
112  font = XmFontListCreate (mf, XmSTRING_DEFAULT_CHARSET);
113  }
114  return font;
115 }

+ Here is the caller graph for this function: