Let the output routine retarget later pages with vsize
This commit is contained in:
1 parent
3b99f93ab8
commit
c6ebbea58d
5 files changed
+188
-8
No files matched your search
@@ -192,6 +192,11 @@ impl PageBuilder {
|
||||
.map_or(self.page_goal, |limit| limit.height.max(0))
|
||||
}
|
||||
|
||||
/// Replace the page goal used by later `build`/`build_from` calls.
|
||||
pub fn set_page_goal(&mut self, page_goal: i64) {
|
||||
self.page_goal = page_goal.max(1);
|
||||
}
|
||||
|
||||
/// Split `nodes` into pages, choosing the cheapest legal break each time.
|
||||
pub fn build(&self, nodes: &[VerticalNode]) -> Vec<PageFragment> {
|
||||
let mut pages = Vec::new();
|
||||
|
||||
Reference in new issue
Block a user