diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/text/par.png | bin | 4337 -> 3632 bytes | |||
| -rw-r--r-- | tests/typ/text/par.typ | 7 | ||||
| -rw-r--r-- | tests/typeset.rs | 5 |
3 files changed, 4 insertions, 8 deletions
diff --git a/tests/ref/text/par.png b/tests/ref/text/par.png Binary files differindex 41742f20..c3758738 100644 --- a/tests/ref/text/par.png +++ b/tests/ref/text/par.png diff --git a/tests/typ/text/par.typ b/tests/typ/text/par.typ index 8aa1147d..0c776c70 100644 --- a/tests/typ/text/par.typ +++ b/tests/typ/text/par.typ @@ -1,12 +1,7 @@ // Test configuring paragraph properties. --- -// FIXME: Word spacing doesn't work due to new shaping process. -#par!(spacing: 10pt, leading: 25%, word-spacing: 1pt) +#par!(spacing: 10pt, leading: 25%) But, soft! what light through yonder window breaks? It is the east, and Juliet is the sun. - ---- -// Test that it finishes an existing paragraph. -Hello #par!(word-spacing: 0pt) t h e r e ! diff --git a/tests/typeset.rs b/tests/typeset.rs index 3e83fcb5..78577098 100644 --- a/tests/typeset.rs +++ b/tests/typeset.rs @@ -63,8 +63,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(); - state.page.size = Size::new(Length::pt(120.0), Length::inf()); - state.page.margins = Sides::splat(Some(Length::pt(10.0).into())); + 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())); // We hook up some extra test helpers into the global scope. let mut std = typst::library::new(); |
