diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-03-04 07:12:34 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-03-04 07:12:34 +0000 |
| commit | 43d0f79057c1c4dfa1999db8fd6d9f48e5b47951 (patch) | |
| tree | 13eb74852b3c8ee64a1f545eb881fa94c3e85f4b /render/render.h | |
| parent | aeda86f46056a10126f85ad43fb51a92075bcefd (diff) | |
fonts are no longer loaded from the theme file. instead, they are created by the application and passed in while creating/loading a theme
Diffstat (limited to 'render/render.h')
| -rw-r--r-- | render/render.h | 19 |
1 files changed, 17 insertions, 2 deletions
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); |
