diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-11-18 15:10:11 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-11-18 15:10:11 +0100 |
| commit | 1a6fb48bc5e95d0a9ef243ab62517557189c0eea (patch) | |
| tree | 06f704fe638d5ae25f4976874500c5da75316348 /src/lib.rs | |
| parent | 1eb25f86dd6763c4f2d7e60b6d09af60ada50af6 (diff) | |
Page style modification functions 📜
- `page.size`
- `page.margins`
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -21,7 +21,7 @@ use smallvec::smallvec; use toddle::query::{FontLoader, FontProvider, SharedFontLoader}; use crate::func::Scope; -use crate::layout::{layout_tree, LayoutContext, MultiLayout}; +use crate::layout::{layout_tree, MultiLayout, LayoutContext}; use crate::layout::{LayoutAxes, AlignedAxis, Axis, Alignment}; use crate::layout::{LayoutError, LayoutResult, LayoutSpace}; use crate::syntax::{SyntaxTree, parse, ParseContext, ParseError, ParseResult}; @@ -98,7 +98,9 @@ impl<'p> Typesetter<'p> { &tree, LayoutContext { loader: &self.loader, - style: &self.text_style, + top_level: true, + text_style: &self.text_style, + page_style: self.page_style, spaces: smallvec