aboutsummaryrefslogtreecommitdiff
path: root/src/slide_render.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-08-10 22:03:52 +0200
committerThomas White <taw@bitwiz.org.uk>2011-08-10 22:03:52 +0200
commit87d1c1c339768b8c9cde14e40b955e618ee4540f (patch)
treebae3f229a48a526f2f1d788cff3db204068e555f /src/slide_render.c
parent394b051daacb63c661dba0a8c57ec04ad1ae73cf (diff)
Plug in style and layout stuff to UI
Diffstat (limited to 'src/slide_render.c')
-rw-r--r--src/slide_render.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slide_render.c b/src/slide_render.c
index 6dec16f..c4cd55c 100644
--- a/src/slide_render.c
+++ b/src/slide_render.c
@@ -32,6 +32,7 @@
#include "slide_render.h"
#include "presentation.h"
#include "objects.h"
+#include "stylesheet.h"
static void render_text_object(cairo_t *cr, struct object *o)
@@ -40,7 +41,7 @@ static void render_text_object(cairo_t *cr, struct object *o)
o->layout = pango_cairo_create_layout(cr);
pango_layout_set_text(o->layout, o->text, -1);
- o->fontdesc = pango_font_description_from_string("Sans 30");
+ o->fontdesc = pango_font_description_from_string(o->style->font);
pango_layout_set_font_description(o->layout, o->fontdesc);
pango_cairo_update_layout(cr, o->layout);