diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a7ccb10ab..fa63f4271 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,7 @@ jobs: tag: ci-semi-stable - uses: typst-community/setup-typst@v3 with: - typst-version: '0.12.0-rc1' + typst-version: '0.12.0-rc2' cache-dependency-path: src/deps.typ - run: | just install @local diff --git a/src/draw/shapes.typ b/src/draw/shapes.typ index bbf2f6749..8e893bb1d 100644 --- a/src/draw/shapes.typ +++ b/src/draw/shapes.typ @@ -942,7 +942,7 @@ bottom: padding.at("bottom", default: 0) * ctx.length, right: padding.at("right", default: 0) * ctx.length, ), - body + text(top-edge: "bounds", bottom-edge: "bounds", body) ) ) ) diff --git a/tests/anchor/centroid/ref/1.png b/tests/anchor/centroid/ref/1.png index d35c250d9..e3f1f486e 100644 Binary files a/tests/anchor/centroid/ref/1.png and b/tests/anchor/centroid/ref/1.png differ diff --git a/tests/anchor/element-anchors/ref/1.png b/tests/anchor/element-anchors/ref/1.png index 4396e9212..0b8517358 100644 Binary files a/tests/anchor/element-anchors/ref/1.png and b/tests/anchor/element-anchors/ref/1.png differ diff --git a/tests/anchor/path-anchors/ref/1.png b/tests/anchor/path-anchors/ref/1.png index 4c01edc1b..8a2451145 100644 Binary files a/tests/anchor/path-anchors/ref/1.png and b/tests/anchor/path-anchors/ref/1.png differ diff --git a/tests/anchor/root/ref/1.png b/tests/anchor/root/ref/1.png index 4aa9bb58c..7261de1bd 100644 Binary files a/tests/anchor/root/ref/1.png and b/tests/anchor/root/ref/1.png differ diff --git a/tests/angle/ref/1.png b/tests/angle/ref/1.png index 2298dadbc..8ede94d1a 100644 Binary files a/tests/angle/ref/1.png and b/tests/angle/ref/1.png differ diff --git a/tests/angle/right-angle/ref/1.png b/tests/angle/right-angle/ref/1.png index 1ff6f2455..1ac981887 100644 Binary files a/tests/angle/right-angle/ref/1.png and b/tests/angle/right-angle/ref/1.png differ diff --git a/tests/arc/arc-through/ref/1.png b/tests/arc/arc-through/ref/1.png index 64db0f87c..b37704c7e 100644 Binary files a/tests/arc/arc-through/ref/1.png and b/tests/arc/arc-through/ref/1.png differ diff --git a/tests/arc/last-pos/ref/1.png b/tests/arc/last-pos/ref/1.png index 53573e042..ba5384849 100644 Binary files a/tests/arc/last-pos/ref/1.png and b/tests/arc/last-pos/ref/1.png differ diff --git a/tests/arc/ref/1.png b/tests/arc/ref/1.png index f28cb4276..b34c0b4a1 100644 Binary files a/tests/arc/ref/1.png and b/tests/arc/ref/1.png differ diff --git a/tests/arrows/ref/1.png b/tests/arrows/ref/1.png index d665acb93..40859c3ba 100644 Binary files a/tests/arrows/ref/1.png and b/tests/arrows/ref/1.png differ diff --git a/tests/bezier-through/ref/1.png b/tests/bezier-through/ref/1.png index ddea7b32d..270cdf8ff 100644 Binary files a/tests/bezier-through/ref/1.png and b/tests/bezier-through/ref/1.png differ diff --git a/tests/bezier/ref/1.png b/tests/bezier/ref/1.png index ccd1af394..1dedbe9f7 100644 Binary files a/tests/bezier/ref/1.png and b/tests/bezier/ref/1.png differ diff --git a/tests/bezier/shorten/ref/1.png b/tests/bezier/shorten/ref/1.png index dac1fede0..096871c6d 100644 Binary files a/tests/bezier/shorten/ref/1.png and b/tests/bezier/shorten/ref/1.png differ diff --git a/tests/bounds/ref/1.png b/tests/bounds/ref/1.png index c70727f74..bc9ca7c08 100644 Binary files a/tests/bounds/ref/1.png and b/tests/bounds/ref/1.png differ diff --git a/tests/catmul/ref/1.png b/tests/catmul/ref/1.png index eb25c7534..c43647621 100644 Binary files a/tests/catmul/ref/1.png and b/tests/catmul/ref/1.png differ diff --git a/tests/circle-through/ref/1.png b/tests/circle-through/ref/1.png index ad27b94e6..d3472ffad 100644 Binary files a/tests/circle-through/ref/1.png and b/tests/circle-through/ref/1.png differ diff --git a/tests/circle/ref/1.png b/tests/circle/ref/1.png index b4c9dbe3a..5a4a1fc2a 100644 Binary files a/tests/circle/ref/1.png and b/tests/circle/ref/1.png differ diff --git a/tests/content/anchor/ref/1.png b/tests/content/anchor/ref/1.png index f9fc5e1c1..8ff7ccc5a 100644 Binary files a/tests/content/anchor/ref/1.png and b/tests/content/anchor/ref/1.png differ diff --git a/tests/content/intersection/ref/1.png b/tests/content/intersection/ref/1.png index 9118418ea..6ea4bed29 100644 Binary files a/tests/content/intersection/ref/1.png and b/tests/content/intersection/ref/1.png differ diff --git a/tests/content/padding/ref/1.png b/tests/content/padding/ref/1.png index 7cd0d26a4..6d5a702a8 100644 Binary files a/tests/content/padding/ref/1.png and b/tests/content/padding/ref/1.png differ diff --git a/tests/content/ref/1.png b/tests/content/ref/1.png index 5a94a9f87..d45617c5d 100644 Binary files a/tests/content/ref/1.png and b/tests/content/ref/1.png differ diff --git a/tests/content/rotate/ref/1.png b/tests/content/rotate/ref/1.png index 41b03f1f1..598a59464 100644 Binary files a/tests/content/rotate/ref/1.png and b/tests/content/rotate/ref/1.png differ diff --git a/tests/content/rtl/ref/1.png b/tests/content/rtl/ref/1.png index 37a38313a..178aac09a 100644 Binary files a/tests/content/rtl/ref/1.png and b/tests/content/rtl/ref/1.png differ diff --git a/tests/content/span/ref/1.png b/tests/content/span/ref/1.png index 312d60fad..2117226bf 100644 Binary files a/tests/content/span/ref/1.png and b/tests/content/span/ref/1.png differ diff --git a/tests/content/test.typ b/tests/content/test.typ index 9e19d7c9b..4585edf1e 100644 --- a/tests/content/test.typ +++ b/tests/content/test.typ @@ -75,5 +75,6 @@ // Test inline math measuring #context box(stroke: 2pt + red, canvas(length: 1cm, { import draw: * - content((0, 0), $x=1$) + //content((0, 0), $x=1$) + content((0, 0), $x$) })) diff --git a/tests/content/transform/ref/1.png b/tests/content/transform/ref/1.png index 2f20b0571..4f98e98fc 100644 Binary files a/tests/content/transform/ref/1.png and b/tests/content/transform/ref/1.png differ diff --git a/tests/coordinate/lerp/ref/1.png b/tests/coordinate/lerp/ref/1.png index 2eb2bee0c..0dfdb1350 100644 Binary files a/tests/coordinate/lerp/ref/1.png and b/tests/coordinate/lerp/ref/1.png differ diff --git a/tests/decorations/path/ref/1.png b/tests/decorations/path/ref/1.png index 619d1068e..841a84a69 100644 Binary files a/tests/decorations/path/ref/1.png and b/tests/decorations/path/ref/1.png differ diff --git a/tests/decorations/ref/1.png b/tests/decorations/ref/1.png index 16d984834..fb2e11a61 100644 Binary files a/tests/decorations/ref/1.png and b/tests/decorations/ref/1.png differ diff --git a/tests/floating/ref/1.png b/tests/floating/ref/1.png index 6ce8b1efc..a9a31b7c0 100644 Binary files a/tests/floating/ref/1.png and b/tests/floating/ref/1.png differ diff --git a/tests/gradient/ref/1.png b/tests/gradient/ref/1.png index d2bf42d6d..98c3072f3 100644 Binary files a/tests/gradient/ref/1.png and b/tests/gradient/ref/1.png differ diff --git a/tests/group/nested-anchor/ref/1.png b/tests/group/nested-anchor/ref/1.png index e1cf4ecea..2c9c219d6 100644 Binary files a/tests/group/nested-anchor/ref/1.png and b/tests/group/nested-anchor/ref/1.png differ diff --git a/tests/group/transform/ref/1.png b/tests/group/transform/ref/1.png index c80e6f1be..ce9b46cfe 100644 Binary files a/tests/group/transform/ref/1.png and b/tests/group/transform/ref/1.png differ diff --git a/tests/group/translate/ref/1.png b/tests/group/translate/ref/1.png index e20f38a0c..4c66bd288 100644 Binary files a/tests/group/translate/ref/1.png and b/tests/group/translate/ref/1.png differ diff --git a/tests/hide/ref/1.png b/tests/hide/ref/1.png index 6c52e9cfd..156d5900f 100644 Binary files a/tests/hide/ref/1.png and b/tests/hide/ref/1.png differ diff --git a/tests/hobby/ref/1.png b/tests/hobby/ref/1.png index f256f9f59..eaa6138e9 100644 Binary files a/tests/hobby/ref/1.png and b/tests/hobby/ref/1.png differ diff --git a/tests/image/ref/1.png b/tests/image/ref/1.png index 493630147..7ac6939cb 100644 Binary files a/tests/image/ref/1.png and b/tests/image/ref/1.png differ diff --git a/tests/intersection/ref/1.png b/tests/intersection/ref/1.png index 9e4f35d63..539fc11ed 100644 Binary files a/tests/intersection/ref/1.png and b/tests/intersection/ref/1.png differ diff --git a/tests/layer/ref/1.png b/tests/layer/ref/1.png index a8a49b0d3..079b8511b 100644 Binary files a/tests/layer/ref/1.png and b/tests/layer/ref/1.png differ diff --git a/tests/line/element-element/ref/1.png b/tests/line/element-element/ref/1.png index 4e6a80e8b..07614c4cb 100644 Binary files a/tests/line/element-element/ref/1.png and b/tests/line/element-element/ref/1.png differ diff --git a/tests/local-anchor/ref/1.png b/tests/local-anchor/ref/1.png index 06529ab45..b8537b020 100644 Binary files a/tests/local-anchor/ref/1.png and b/tests/local-anchor/ref/1.png differ diff --git a/tests/mark/anchor/ref/1.png b/tests/mark/anchor/ref/1.png index a9e29a06f..06f119031 100644 Binary files a/tests/mark/anchor/ref/1.png and b/tests/mark/anchor/ref/1.png differ diff --git a/tests/mark/auto-offset/ref/1.png b/tests/mark/auto-offset/ref/1.png index 9516cd492..56c9d12ac 100644 Binary files a/tests/mark/auto-offset/ref/1.png and b/tests/mark/auto-offset/ref/1.png differ diff --git a/tests/mark/custom/ref/1.png b/tests/mark/custom/ref/1.png index 2cbe36981..f04573aa6 100644 Binary files a/tests/mark/custom/ref/1.png and b/tests/mark/custom/ref/1.png differ diff --git a/tests/mark/multiple/ref/1.png b/tests/mark/multiple/ref/1.png index 737a36398..caf2d6b27 100644 Binary files a/tests/mark/multiple/ref/1.png and b/tests/mark/multiple/ref/1.png differ diff --git a/tests/mark/shape-transform/ref/1.png b/tests/mark/shape-transform/ref/1.png index 0aa39b2a7..bb91a780f 100644 Binary files a/tests/mark/shape-transform/ref/1.png and b/tests/mark/shape-transform/ref/1.png differ diff --git a/tests/mark/single/ref/1.png b/tests/mark/single/ref/1.png index 5144a3464..c484d43cb 100644 Binary files a/tests/mark/single/ref/1.png and b/tests/mark/single/ref/1.png differ diff --git a/tests/merge/ref/1.png b/tests/merge/ref/1.png index ae597546a..0b4b10624 100644 Binary files a/tests/merge/ref/1.png and b/tests/merge/ref/1.png differ diff --git a/tests/palette/ref/1.png b/tests/palette/ref/1.png index e4368156d..92669c79c 100644 Binary files a/tests/palette/ref/1.png and b/tests/palette/ref/1.png differ diff --git a/tests/primitives/ref/1.png b/tests/primitives/ref/1.png index d05113357..c6cafe09c 100644 Binary files a/tests/primitives/ref/1.png and b/tests/primitives/ref/1.png differ diff --git a/tests/projection/ortho/ref/1.png b/tests/projection/ortho/ref/1.png index cf1460157..6b422071a 100644 Binary files a/tests/projection/ortho/ref/1.png and b/tests/projection/ortho/ref/1.png differ diff --git a/tests/rect/rounded/ref/1.png b/tests/rect/rounded/ref/1.png index 8a2c962fd..ea98c49b4 100644 Binary files a/tests/rect/rounded/ref/1.png and b/tests/rect/rounded/ref/1.png differ diff --git a/tests/relative-length/ref/1.png b/tests/relative-length/ref/1.png index f43661bde..4bd1a630e 100644 Binary files a/tests/relative-length/ref/1.png and b/tests/relative-length/ref/1.png differ diff --git a/tests/relative-no-update/ref/1.png b/tests/relative-no-update/ref/1.png index 73d80b14d..cdc22aae9 100644 Binary files a/tests/relative-no-update/ref/1.png and b/tests/relative-no-update/ref/1.png differ diff --git a/tests/ring/ref/1.png b/tests/ring/ref/1.png index 5bc6065a5..f03d914f8 100644 Binary files a/tests/ring/ref/1.png and b/tests/ring/ref/1.png differ diff --git a/tests/rotation/around/ref/1.png b/tests/rotation/around/ref/1.png index 4d4238bd0..e7c2bc827 100644 Binary files a/tests/rotation/around/ref/1.png and b/tests/rotation/around/ref/1.png differ diff --git a/tests/rotation/ref/1.png b/tests/rotation/ref/1.png index 78c466e11..5e3b1dbfa 100644 Binary files a/tests/rotation/ref/1.png and b/tests/rotation/ref/1.png differ diff --git a/tests/set-get-ctx/ref/1.png b/tests/set-get-ctx/ref/1.png index 71f7be2da..8be49d0c8 100644 Binary files a/tests/set-get-ctx/ref/1.png and b/tests/set-get-ctx/ref/1.png differ diff --git a/tests/style/ref/1.png b/tests/style/ref/1.png index 387dc8fd8..40873bc75 100644 Binary files a/tests/style/ref/1.png and b/tests/style/ref/1.png differ diff --git a/tests/transform/precission/ref/1.png b/tests/transform/precission/ref/1.png index 4635d6cd9..64c79cfc4 100644 Binary files a/tests/transform/precission/ref/1.png and b/tests/transform/precission/ref/1.png differ diff --git a/tests/translation/ref/1.png b/tests/translation/ref/1.png index 54dea833d..2d4c4f6a3 100644 Binary files a/tests/translation/ref/1.png and b/tests/translation/ref/1.png differ diff --git a/tests/tree/ref/1.png b/tests/tree/ref/1.png index 2b3e8b999..23d332efc 100644 Binary files a/tests/tree/ref/1.png and b/tests/tree/ref/1.png differ diff --git a/tests/viewport/ref/1.png b/tests/viewport/ref/1.png index f2ceebab6..168384fc0 100644 Binary files a/tests/viewport/ref/1.png and b/tests/viewport/ref/1.png differ