From 43ee6cf36aa1e68e816c9e9e57dab1df96b6fd23 Mon Sep 17 00:00:00 2001 From: Paul Gardiner Date: Thu, 2 Jan 2014 14:27:13 +0000 Subject: 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. --- source/pdf/pdf-appearance.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/pdf/pdf-appearance.c') 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 ++) { -- cgit v1.2.3