summaryrefslogtreecommitdiff
path: root/kicad/pl-parse.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-08 00:44:43 -0300
committerWerner Almesberger <werner@almesberger.net>2016-09-08 00:44:43 -0300
commitfa130f5a73cee267856102d90bdb48bf5aaa1307 (patch)
treed8e53b91066c4c46dcb99b96859282fec6f461a6 /kicad/pl-parse.c
parent284ec4ec48610b5e9ee8b2fbd5a6697d9b0368f5 (diff)
downloadeeshow-fa130f5a73cee267856102d90bdb48bf5aaa1307.tar.gz
eeshow-fa130f5a73cee267856102d90bdb48bf5aaa1307.tar.bz2
eeshow-fa130f5a73cee267856102d90bdb48bf5aaa1307.zip
kicad/: support rotated text in page layouts
Diffstat (limited to 'kicad/pl-parse.c')
-rw-r--r--kicad/pl-parse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kicad/pl-parse.c b/kicad/pl-parse.c
index 386e3db..7863466 100644
--- a/kicad/pl-parse.c
+++ b/kicad/pl-parse.c
@@ -283,6 +283,7 @@ static bool process_obj(struct pl_ctx *pl, const struct expr *e,
obj->font = 0;
obj->hor = text_min;
obj->vert = text_mid;
+ obj->rotate = 0;
for (; e; e = e->next) {
if (e->s) {
@@ -334,6 +335,9 @@ static bool process_obj(struct pl_ctx *pl, const struct expr *e,
} else if (!strcmp(s, "justify")) {
if (!process_justify(obj, next))
return 0;
+ } else if (!strcmp(s, "rotate")) {
+ if (!get_float(next, &obj->rotate))
+ return 0;
} else
warning("pl_obj: ignoring \"%s\"", s);
}