From 73615f7e3ce23f2ea656d04ea9f96184f5ebdc0a Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 24 Mar 2021 17:12:34 +0100 Subject: =?UTF-8?q?Text=20shaping=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Shapes text with rustybuzz - Font fallback with family list - Tofus are shown in the first font Co-Authored-By: Martin --- tests/typ/text/complex.typ | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 tests/typ/text/complex.typ (limited to 'tests/typ/text/complex.typ') diff --git a/tests/typ/text/complex.typ b/tests/typ/text/complex.typ new file mode 100644 index 00000000..567a208d --- /dev/null +++ b/tests/typ/text/complex.typ @@ -0,0 +1,38 @@ +// Test complex text shaping. + +--- +// Test ligatures. + +// This should create an "fi" ligature. +Le fira + +// This should just shape nicely. +#font("Noto Sans Arabic") +منش إلا بسم الله + +// This should form a three-member family. +#font("Twitter Color Emoji") +👩‍👩‍👦 🤚🏿 + +// These two shouldn't be affected by a zero-width joiner. +🏞‍🌋 + +--- +// Test font fallback. + +#font("EB Garamond", "Noto Sans Arabic", "Twitter Color Emoji") + +// Font fallback for emoji. +A😀B + +// Font fallback for entire text. +منش إلا بسم الله + +// Font fallback in right-to-left text. +ب🐈😀سم + +// Multi-layer font fallback. +Aب😀🏞سمB + +// Tofus are rendered with the first font. +A🐈中文B -- cgit v1.2.3