summaryrefslogtreecommitdiff
path: root/tests/typeset.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-09-30 22:46:03 +0200
committerLaurenz <laurmaedje@gmail.com>2021-09-30 22:50:14 +0200
commit2818ceee44a523308d83643b8d2f921b4a5e5d2e (patch)
tree7578dd2e354e64c0265cc6e736828e5803d38762 /tests/typeset.rs
parent30f302f7ffc464b41f1ac3b6d8fc6b4214835549 (diff)
New default fonts
Diffstat (limited to 'tests/typeset.rs')
-rw-r--r--tests/typeset.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/typeset.rs b/tests/typeset.rs
index 25291cd7..778d8f6c 100644
--- a/tests/typeset.rs
+++ b/tests/typeset.rs
@@ -62,9 +62,9 @@ fn main() {
// We want to have "unbounded" pages, so we allow them to be infinitely
// large and fit them to match their content.
let mut state = State::default();
- let page = state.page_mut();
- page.size = Size::new(Length::pt(120.0), Length::inf());
- page.margins = Sides::splat(Some(Length::pt(10.0).into()));
+ state.page_mut().size = Size::new(Length::pt(120.0), Length::inf());
+ state.page_mut().margins = Sides::splat(Some(Length::pt(10.0).into()));
+ state.font_mut().size = Length::pt(10.0);
// Hook up an assert function into the global scope.
let mut std = typst::library::new();