From d99359dede8f366fc16d38c6166b97a0f56fe0cb Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 12 Feb 2023 21:14:21 +0100 Subject: Add `baseline` argument to `box` --- tests/ref/text/baseline.png | Bin 6168 -> 29069 bytes tests/typ/text/baseline.typ | 5 ++++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/ref/text/baseline.png b/tests/ref/text/baseline.png index f011c8c4..c28b454a 100644 Binary files a/tests/ref/text/baseline.png and b/tests/ref/text/baseline.png differ diff --git a/tests/typ/text/baseline.typ b/tests/typ/text/baseline.typ index 57963195..c19e3c63 100644 --- a/tests/typ/text/baseline.typ +++ b/tests/typ/text/baseline.typ @@ -1,4 +1,4 @@ -// Test text baseline. +// Test baseline handling. --- Hi #text(1.5em)[You], #text(0.75em)[how are you?] @@ -7,3 +7,6 @@ Our cockatoo was one of the #text(baseline: -0.2em)[#box(circle(radius: 2pt)) first] #text(baseline: 0.2em)[birds #box(circle(radius: 2pt))] that ever learned to mimic a human voice. + +--- +Hey #box(baseline: 40%, image("/tiger.jpg", width: 1.5cm)) there! -- cgit v1.2.3