summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-04-11 18:16:50 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-04-11 18:16:50 +0200
commitc6934bd8de9d593ec51f60b7c0db9f8a2125352e (patch)
treef964a662ebe3ad5e79cd55215eedc7fd4eb05434 /fitz
parent6d2ca771127fb9186372566e5671c79c354b04b9 (diff)
downloadmupdf-c6934bd8de9d593ec51f60b7c0db9f8a2125352e.tar.xz
Add triangle caps; separate start, dash and end cap styles for XPS.
Diffstat (limited to 'fitz')
-rw-r--r--fitz/dev_trace.c2
-rw-r--r--fitz/fitz.h2
-rw-r--r--fitz/res_font.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/fitz/dev_trace.c b/fitz/dev_trace.c
index 758a18f9..9e6853b8 100644
--- a/fitz/dev_trace.c
+++ b/fitz/dev_trace.c
@@ -84,7 +84,7 @@ fz_trace_stroke_path(void *user, fz_path *path, fz_stroke_state *stroke, fz_matr
printf("<stroke_path ");
printf("linewidth=\"%g\" ", stroke->linewidth);
printf("miterlimit=\"%g\" ", stroke->miterlimit);
- printf("linecap=\"%d\" ", stroke->linecap);
+ printf("linecap=\"%d,%d,%d\" ", stroke->start_cap, stroke->dash_cap, stroke->end_cap);
printf("linejoin=\"%d\" ", stroke->linejoin);
if (stroke->dash_len)
diff --git a/fitz/fitz.h b/fitz/fitz.h
index 399c7665..7f35c417 100644
--- a/fitz/fitz.h
+++ b/fitz/fitz.h
@@ -784,7 +784,7 @@ struct fz_path_s
struct fz_stroke_state_s
{
- int linecap;
+ int start_cap, dash_cap, end_cap;
int linejoin;
float linewidth;
float miterlimit;
diff --git a/fitz/res_font.c b/fitz/res_font.c
index e2542f9b..fdcfb77b 100644
--- a/fitz/res_font.c
+++ b/fitz/res_font.c
@@ -432,7 +432,7 @@ fz_render_ft_stroked_glyph(fz_font *font, int gid, fz_matrix trm, fz_matrix ctm,
return NULL;
}
- FT_Stroker_Set(stroker, linewidth, state->linecap, state->linejoin, state->miterlimit * 65536);
+ FT_Stroker_Set(stroker, linewidth, state->start_cap, state->linejoin, state->miterlimit * 65536);
fterr = FT_Get_Glyph(face->glyph, &glyph);
if (fterr)