From bf9d830adbca9978f82439af7f9b742d00d97214 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 27 Jun 2012 19:43:37 +0100 Subject: Fix clipping of stroked text seen in displaylist cases. When calculating the displaylist node rectangles, we were failing to adjust for linewidth/mitrewidth etc. This could result in glyphs being clipped; see normal_130.pdf for example. --- fitz/fitz-internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'fitz/fitz-internal.h') diff --git a/fitz/fitz-internal.h b/fitz/fitz-internal.h index 2f7f8041..6fc40f49 100644 --- a/fitz/fitz-internal.h +++ b/fitz/fitz-internal.h @@ -814,6 +814,7 @@ void fz_transform_path(fz_context *ctx, fz_path *path, fz_matrix transform); fz_path *fz_clone_path(fz_context *ctx, fz_path *old); fz_rect fz_bound_path(fz_context *ctx, fz_path *path, fz_stroke_state *stroke, fz_matrix ctm); +void fz_adjust_rect_for_stroke(fz_rect *r, fz_stroke_state *stroke, fz_matrix *ctm); void fz_print_path(fz_context *ctx, FILE *out, fz_path *, int indent); fz_stroke_state *fz_new_stroke_state(fz_context *ctx); -- cgit v1.2.3