From 43d0f79057c1c4dfa1999db8fd6d9f48e5b47951 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 4 Mar 2007 07:12:34 +0000 Subject: fonts are no longer loaded from the theme file. instead, they are created by the application and passed in while creating/loading a theme --- render/render.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'render/render.h') diff --git a/render/render.h b/render/render.h index c5f98381..0b8d3b4c 100644 --- a/render/render.h +++ b/render/render.h @@ -186,6 +186,14 @@ struct _RrAppearance { #define RrDefaultGreenOffset 8 #define RrDefaultBlueOffset 0 +#define RrDefaultFontFamily "arial,sans" +#define RrDefaultFontSize 8 +#define RrDefaultFontWeight RR_FONTWEIGHT_NORMAL +#define RrDefaultFontSlant RR_FONTSLANT_NORMAL +#define RrDefaultFontShadow FALSE +#define RrDefaultFontShadowOffset 1 +#define RrDefaultFontShadowTint 50 + RrInstance* RrInstanceNew (Display *display, gint screen); void RrInstanceFree (RrInstance *inst); @@ -219,9 +227,16 @@ RrAppearance *RrAppearanceNew (const RrInstance *inst, gint numtex); RrAppearance *RrAppearanceCopy (RrAppearance *a); void RrAppearanceFree (RrAppearance *a); +RrFont *RrFontOpenByString (const RrInstance *inst, gchar *fontstring); +RrFont *RrFontOpen (const RrInstance *inst, gchar *name, gint size, + RrFontWeight weight, RrFontSlant slant, + gboolean shadow, gint shadowoffset, + gchar shadowtint); +RrFont *RrFontOpenDefault (const RrInstance *inst); +void RrFontClose (RrFont *f); RrSize *RrFontMeasureString (const RrFont *f, const gchar *str); -gint RrFontHeight (const RrFont *f); -gint RrFontMaxCharWidth (const RrFont *f); +gint RrFontHeight (const RrFont *f); +gint RrFontMaxCharWidth (const RrFont *f); void RrPaint (RrAppearance *a, Window win, gint w, gint h); void RrMinsize (RrAppearance *a, gint *w, gint *h); -- cgit v1.2.3