summaryrefslogtreecommitdiff
path: root/gfx/text.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-26 01:03:23 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-26 01:40:30 -0300
commitce09b77d3be3cf2f61142dbdf22b05afe881f59c (patch)
tree84ec067aa1235f863ba595454a9f1605ca54c27a /gfx/text.h
parentf99f39fd163f8b84b11dbfd576f5d010b09c790f (diff)
downloadeeshow-ce09b77d3be3cf2f61142dbdf22b05afe881f59c.tar.gz
eeshow-ce09b77d3be3cf2f61142dbdf22b05afe881f59c.tar.bz2
eeshow-ce09b77d3be3cf2f61142dbdf22b05afe881f59c.zip
fully decode text attributes in sch-parse.c and lib-parse.c
Diffstat (limited to 'gfx/text.h')
-rw-r--r--gfx/text.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/gfx/text.h b/gfx/text.h
index 0564cb0..bc042ac 100644
--- a/gfx/text.h
+++ b/gfx/text.h
@@ -25,9 +25,13 @@ enum text_align {
text_max = 2, // right or top
};
+/* "Text Notes" seem to use this encoding */
+
enum text_style {
- text_normal,
- text_italic,
+ text_normal = 0,
+ text_italic = 1,
+ text_bold = 2,
+ text_bold_italic = 3, // text_italic | text_bold
};
struct text {
@@ -37,8 +41,10 @@ struct text {
int rot;
enum text_align hor;
enum text_align vert;
+ enum text_style style;
};
+
void text_init(struct text *txt);
void text_free(struct text *txt);