summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorfrozolotl <44589151+frozolotl@users.noreply.github.com>2024-02-20 14:03:25 +0100
committerGitHub <noreply@github.com>2024-02-20 13:03:25 +0000
commitee2128d115f640a72f658540262e1028038a9381 (patch)
treec241ee7d75031bd4ff3ff7f96c76b4ec90fcb417 /tests/typ
parentd8aba7c4ff10f8f5c3bab0adb46405cc221637bd (diff)
Fix transparent text in PNG export (#3444)
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/text/font.typ6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/typ/text/font.typ b/tests/typ/text/font.typ
index 07d00d14..736ded41 100644
--- a/tests/typ/text/font.typ
+++ b/tests/typ/text/font.typ
@@ -30,6 +30,12 @@ Emoji: 🐪, 🌋, 🏞
This is #text(rgb("FA644B"))[way more] colorful.
]
+// Transparency.
+#block(fill: green)[
+ #set text(fill: rgb("FF000080"))
+ This text is transparent.
+]
+
// Disable font fallback beyond the user-specified list.
// Without disabling, New Computer Modern Math would come to the rescue.
#set text(font: ("PT Sans", "Twitter Color Emoji"), fallback: false)