From b9c16eb6d903ab809b340d404139dcaa1872ea9c Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 25 Feb 2019 21:48:42 +0100 Subject: Use text font --- libstorycode/stylesheet.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'libstorycode/stylesheet.c') diff --git a/libstorycode/stylesheet.c b/libstorycode/stylesheet.c index 451f3f0..142d8a7 100644 --- a/libstorycode/stylesheet.c +++ b/libstorycode/stylesheet.c @@ -232,9 +232,15 @@ int stylesheet_set_alignment(Stylesheet *s, enum style_element el, enum alignmen } -const char *stylesheet_get_slide_text_font(Stylesheet *s) +const char *stylesheet_get_font(Stylesheet *s, enum style_element el, + double fgcol[4], enum alignment *alignment) { - if ( s == NULL ) return NULL; + int i; + struct style *sty = get_style(s, el); + if ( sty == NULL ) return NULL; + + *alignment = sty->alignment; + for ( i=0; i<4; i++ ) fgcol[i] = sty->fgcol[i]; return s->slide_text.font; } -- cgit v1.2.3