diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-02-25 21:48:42 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-02-25 21:48:42 +0100 |
commit | b9c16eb6d903ab809b340d404139dcaa1872ea9c (patch) | |
tree | d0afc17d58be0c6c1ea3fb2ef07c83e1fd1b6c3d /libstorycode/stylesheet.c | |
parent | 572d0f24e4923cac794e7b2da8632951cd807852 (diff) |
Use text font
Diffstat (limited to 'libstorycode/stylesheet.c')
-rw-r--r-- | libstorycode/stylesheet.c | 10 |
1 files changed, 8 insertions, 2 deletions
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; } |