summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-12-11 22:06:54 +0100
committerLaurenz <laurmaedje@gmail.com>2019-12-11 22:06:54 +0100
commita791ef162868c65284903ab479731e0dc9e7a223 (patch)
tree28384c5647086db87c822b186860492dfce23af3 /src/lib.rs
parentd34707a6ae058560140c83af21365884451e9274 (diff)
Pretty good stack layouter ✈
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 368d0cda..5b5e3b0c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -26,7 +26,7 @@ use toddle::Error as FontError;
use crate::func::Scope;
use crate::layout::{layout_tree, MultiLayout, LayoutContext};
-use crate::layout::{LayoutAxes, LayoutAlignment, Axis, Alignment};
+use crate::layout::{LayoutAxes, LayoutAlignment};
use crate::layout::{LayoutResult, LayoutSpace, LayoutExpansion};
use crate::syntax::{parse, SyntaxTree, ParseContext, Span, ParseResult};
use crate::style::{LayoutStyle, PageStyle, TextStyle};
@@ -94,7 +94,6 @@ impl<'p> Typesetter<'p> {
&tree,
LayoutContext {
loader: &self.loader,
- top_level: true,
style: &self.style,
spaces: smallvec![LayoutSpace {
dimensions: self.style.page.dimensions,
@@ -103,6 +102,8 @@ impl<'p> Typesetter<'p> {
}],
axes: LayoutAxes::default(),
alignment: LayoutAlignment::default(),
+ top_level: true,
+ debug: false,
},
)?)
}