diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-04-11 18:16:50 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-04-11 18:16:50 +0200 |
commit | c6934bd8de9d593ec51f60b7c0db9f8a2125352e (patch) | |
tree | f964a662ebe3ad5e79cd55215eedc7fd4eb05434 /xps/xps_path.c | |
parent | 6d2ca771127fb9186372566e5671c79c354b04b9 (diff) | |
download | mupdf-c6934bd8de9d593ec51f60b7c0db9f8a2125352e.tar.xz |
Add triangle caps; separate start, dash and end cap styles for XPS.
Diffstat (limited to 'xps/xps_path.c')
-rw-r--r-- | xps/xps_path.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xps/xps_path.c b/xps/xps_path.c index 547deed8..c2444779 100644 --- a/xps/xps_path.c +++ b/xps/xps_path.c @@ -741,7 +741,7 @@ xps_parse_line_cap(char *attr) if (!strcmp(attr, "Flat")) return 0; if (!strcmp(attr, "Round")) return 1; if (!strcmp(attr, "Square")) return 2; - if (!strcmp(attr, "Triangle")) return 3; /* FIXME add triangle caps */ + if (!strcmp(attr, "Triangle")) return 3; } return 0; } @@ -880,9 +880,9 @@ xps_parse_path(xps_context *ctx, fz_matrix ctm, char *base_uri, xps_resource *di stroke_tag = NULL; } - stroke.linecap = xps_parse_line_cap(stroke_start_line_cap_att); -// fz_setlineendcap(ctx->pgs, xps_parse_line_cap(stroke_end_line_cap_att)); -// fz_setlinedashcap(ctx->pgs, xps_parse_line_cap(stroke_dash_cap_att)); + stroke.start_cap = xps_parse_line_cap(stroke_start_line_cap_att); + stroke.dash_cap = xps_parse_line_cap(stroke_dash_cap_att); + stroke.end_cap = xps_parse_line_cap(stroke_end_line_cap_att); stroke.linejoin = 0; if (stroke_line_join_att) |