diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-12-11 22:06:54 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-12-11 22:06:54 +0100 |
| commit | a791ef162868c65284903ab479731e0dc9e7a223 (patch) | |
| tree | 28384c5647086db87c822b186860492dfce23af3 /src/lib.rs | |
| parent | d34707a6ae058560140c83af21365884451e9274 (diff) | |
Pretty good stack layouter ✈
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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, }, )?) } |
