X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Ffonts.h;h=913b29e97a4a24ff514f659c36c0e47d27c07d8d;hb=dfdbbddc36c37252ca349eb150cf042ecc8a3688;hp=22682bd7b66225d3186d145097711db176b31b76;hpb=e28f79a133792323d738804bde1f86c9c5d53c30;p=monky diff --git a/src/fonts.h b/src/fonts.h index 22682bd..913b29e 100644 --- a/src/fonts.h +++ b/src/fonts.h @@ -1,4 +1,6 @@ -/* 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 * @@ -7,7 +9,7 @@ * Please see COPYING for details * * Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen - * Copyright (c) 2005-2008 Brenden Matthews, Philip Kovacs, et. al. + * Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. * (see AUTHORS) * All rights reserved. * @@ -24,6 +26,7 @@ * along with this program. If not, see . * */ +#ifdef X11 #ifndef _FONTS_H #define _FONTS_H @@ -62,17 +65,19 @@ struct font_list { #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 */