]> Dogcows Code - chaz/openbox/blobdiff - render/font.h
make the pango rendering code really complicated because that is the only way to...
[chaz/openbox] / render / font.h
index ab52b4505a45001bc55941abf880c51c7356a4ba..f299763946fa89ab7ff6cbc2d2666d1f03188b82 100644 (file)
@@ -21,6 +21,9 @@
 #define __font_h
 #include "render.h"
 #include "geom.h"
+#ifdef USE_PANGO
+#include <pango/pango.h>
+#endif /* USE_PANGO */
 
 struct _RrFont {
     const RrInstance *inst;
@@ -29,9 +32,14 @@ struct _RrFont {
     gint shadow;
     gchar tint;
     gint offset;
+#ifdef USE_PANGO
+    PangoFontDescription *pango_font_description;
+    gint pango_ascent;
+    gint pango_descent;
+#endif /* USE_PANGO */
 };
 
-RrFont *RrFontOpen(const RrInstance *inst, char *fontstring);
+RrFont *RrFontOpen(const RrInstance *inst, gchar *fontstring);
 void RrFontClose(RrFont *f);
 void RrFontDraw(XftDraw *d, RrTextureText *t, RrRect *position);
 #endif /* __font_h */
This page took 0.023241 seconds and 4 git commands to generate.