diff options
author | Paul Gardiner <paul.gardiner@artifex.com> | 2014-01-02 14:27:13 +0000 |
---|---|---|
committer | Paul Gardiner <paul.gardiner@artifex.com> | 2014-01-02 14:27:13 +0000 |
commit | 43ee6cf36aa1e68e816c9e9e57dab1df96b6fd23 (patch) | |
tree | bdf36c99c9b72b9934aee79f2590d882f90e2d75 | |
parent | 1c9c3e37d89d3f515ceab47e8d00f1b4d95bad41 (diff) | |
download | mupdf-43ee6cf36aa1e68e816c9e9e57dab1df96b6fd23.tar.xz |
Bug 694729: Rounding the Ink
Use round caps and joins so as to better match the result of drawing, and also
so that single dots display. Thanks to Michael Cadilhac for the suggestion.
-rw-r--r-- | source/pdf/pdf-appearance.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/pdf/pdf-appearance.c b/source/pdf/pdf-appearance.c index 21cf5ae2..c5c16ba6 100644 --- a/source/pdf/pdf-appearance.c +++ b/source/pdf/pdf-appearance.c @@ -1604,6 +1604,8 @@ void pdf_update_ink_appearance(pdf_document *doc, pdf_annot *annot) path = fz_new_path(ctx); stroke = fz_new_stroke_state(ctx); stroke->linewidth = width; + stroke->start_cap = stroke->end_cap = FZ_LINECAP_ROUND; + stroke->linejoin = FZ_LINEJOIN_ROUND; for (i = 0; i < n; i ++) { |