diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-09-14 23:45:38 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-09-14 23:45:38 +0200 |
commit | c6abe4626c40d4925d6233cf0ca1c30cd49a22cd (patch) | |
tree | 4c2b419987f909695993c9b2b51a335fa1b67111 /libstorycode/narrative_priv.h | |
parent | bef894ac4fc76a7c163fba44a8127162a6c40d2b (diff) |
Handle *bold* in parser, rather than as a separate stage
Diffstat (limited to 'libstorycode/narrative_priv.h')
-rw-r--r-- | libstorycode/narrative_priv.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/libstorycode/narrative_priv.h b/libstorycode/narrative_priv.h index 86aa612..c783df2 100644 --- a/libstorycode/narrative_priv.h +++ b/libstorycode/narrative_priv.h @@ -42,6 +42,13 @@ enum narrative_item_type }; +struct narrative_text_run +{ + enum narrative_run_type type; + char *text; +}; + + struct narrative_item { enum narrative_item_type type; @@ -60,13 +67,11 @@ struct narrative_item * obj_w + space_l + space_r might be less than width of rendering surface */ /* For TEXT, BP, PRESTITLE */ - char *text; + int n_runs; + struct narrative_text_run *runs; enum alignment align; #ifdef HAVE_PANGO PangoLayout *layout; - char *layout_text; - int *chars_removed; - int n_chars_removed; #else void *layout; #endif |