From afaf3dc8801e863fdfafdda35192973fa635cb0e Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 24 Oct 2016 13:13:53 +0100 Subject: Fix cluster timeouts with test file. tests_private/pdf/sumatra/1297_-_interpolate_at_lower_resolutions.pdf times out in the cluster. This is due to us having empty t3 glyphs defined that define d1 rectangles that are wildly different to the default font bbox. Add code to spot that t3 glyphs are empty, and to use a tiny font bbox for them. (It might be nicer to drop the empty display lists, but then this produces knock on problems further on, where non-existent display lists lead to NULL pixmaps, which lead to us think that renders failed etc). --- include/mupdf/fitz/display-list.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/mupdf/fitz/display-list.h b/include/mupdf/fitz/display-list.h index a7f7fa00..916ced70 100644 --- a/include/mupdf/fitz/display-list.h +++ b/include/mupdf/fitz/display-list.h @@ -107,4 +107,13 @@ fz_rect *fz_bound_display_list(fz_context *ctx, fz_display_list *list, fz_rect * */ fz_image *fz_new_image_from_display_list(fz_context *ctx, float w, float h, fz_display_list *list); +/* + Check for a display list being empty + + list: The list to check. + + Returns true if empty, false otherwise. +*/ +int fz_display_list_is_empty(fz_context *ctx, const fz_display_list *list); + #endif -- cgit v1.2.3