-/* Conky, a system monitor, based on torsmo
+/* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
+ *
+ * Conky, a system monitor, based on torsmo
*
* Any original torsmo code is licensed under the BSD license
*
* Please see COPYING for details
*
* Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
- * Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al.
+ * Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al.
* (see AUTHORS)
* All rights reserved.
*
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+#ifdef X11
#ifndef _FONTS_H
#define _FONTS_H
#endif
-#define MAX_FONTS 64 // hmm, no particular reason, just makes sense.
+#define MAX_FONTS 256
/* direct access to registered fonts (FIXME: bad encapsulation) */
extern struct font_list *fonts;
extern int selected_font;
extern int font_count;
+void setup_fonts(void);
void set_font(void);
-int addfont(const char *);
+int add_font(const char *);
void set_first_font(const char *);
void free_fonts(void);
void load_fonts(void);
#endif /* _FONTS_H */
+#endif /* X11 */