diff options
Diffstat (limited to 'tests/typ/text/font.typ')
| -rw-r--r-- | tests/typ/text/font.typ | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/tests/typ/text/font.typ b/tests/typ/text/font.typ index 4b7d7534..b2909182 100644 --- a/tests/typ/text/font.typ +++ b/tests/typ/text/font.typ @@ -3,8 +3,8 @@ --- // Set same font size in three different ways. #text(20pt)[A] -#text(200%)[A] -#text(size: 15pt + 50%)[A] +#text(2em)[A] +#text(size: 15pt + 0.5em)[A] // Do nothing. #text()[Normal] @@ -39,23 +39,6 @@ Emoji: 🐪, 🌋, 🏞 2π = 𝛼 + 𝛽. ✅ --- -// Test top and bottom edge. -#set page(width: 150pt) -#set text(size: 8pt) - -#let try(top, bottom) = rect(fill: conifer)[ - #set text("IBM Plex Mono", top-edge: top, bottom-edge: bottom) - From #top to #bottom -] - -#try("ascender", "descender") -#try("ascender", "baseline") -#try("cap-height", "baseline") -#try("x-height", "baseline") -#try(4pt, -2pt) -#try(1pt + 27%, -18%) - ---- // Error: 11-16 unexpected argument #set text(false) @@ -64,14 +47,6 @@ Emoji: 🐪, 🌋, 🏞 #set text(style: "bold", weight: "thin") --- -// Error: 21-23 expected string or relative length, found array -#set text(top-edge: ()) - ---- -// Error: 21-23 unknown font metric -#set text(top-edge: "") - ---- // Error: 23-27 unexpected argument #set text(size: 10pt, 12pt) |
