From 093ff06eca116ac8d6dfa01d5d25473f91dc2d11 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 13 Apr 2004 19:41:36 +0000 Subject: Fine-tuned the page breaking algorithm by adding penalties and bonuses for breaking in particular places. (For example, it's especially bad to break just after a heading, and especially good to break just before one.) [originally from svn r4064] --- paper.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'paper.h') diff --git a/paper.h b/paper.h index c537dd2..8478e25 100644 --- a/paper.h +++ b/paper.h @@ -182,6 +182,10 @@ struct line_data_Tag { int space_after; int line_height; /* + * Penalties for page breaking before or after this line. + */ + int penalty_before, penalty_after; + /* * These fields are used in the page breaking algorithm. */ int bestcost; -- cgit v1.1