From bfaf5447a789cd0dbbb1e418bea62fef9edc2b7d Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 6 May 2022 10:05:11 +0200 Subject: Cast content from string --- tests/typ/text/font.typ | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/typ/text') diff --git a/tests/typ/text/font.typ b/tests/typ/text/font.typ index b2909182..bfec3e1c 100644 --- a/tests/typ/text/font.typ +++ b/tests/typ/text/font.typ @@ -38,6 +38,14 @@ Emoji: 🐪, 🌋, 🏞 #set text("PT Sans", "Twitter Color Emoji", fallback: false) 2π = 𝛼 + 𝛽. ✅ +--- +// Test string body. +#text("Text") \ +#text(red, "Text") \ +#text("Ubuntu", blue, "Text") \ +#text([Text], teal, "IBM Plex Serif") \ +#text(forest, "Latin Modern Roman", [Text]) \ + --- // Error: 11-16 unexpected argument #set text(false) -- cgit v1.2.3