From 74b1b109865f5a8c141bbc711de6960844b8949d Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 27 Jun 2025 10:35:05 +0000 Subject: [PATCH] Bump `typst-dev-assets` (#6514) --- Cargo.lock | 2 +- Cargo.toml | 2 +- tests/suite/layout/align.typ | 2 +- tests/suite/layout/inline/bidi.typ | 3 ++- tests/suite/layout/inline/shaping.typ | 1 + tests/suite/layout/inline/text.typ | 2 +- tests/suite/layout/repeat.typ | 4 ++-- tests/suite/model/cite.typ | 1 + tests/suite/model/par.typ | 2 +- tests/suite/model/quote.typ | 2 ++ tests/suite/syntax/numbers.typ | 1 + 11 files changed, 14 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 91ff48432..550c4141a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2911,7 +2911,7 @@ dependencies = [ [[package]] name = "typst-dev-assets" version = "0.13.1" -source = "git+https://github.com/typst/typst-dev-assets?rev=fddbf8b#fddbf8b99506bc370ac0edcd4959add603a7fc92" +source = "git+https://github.com/typst/typst-dev-assets?rev=bfa947f#bfa947f3433d7d13a995168c40ae788a2ebfe648" [[package]] name = "typst-docs" diff --git a/Cargo.toml b/Cargo.toml index 76d83995f..6cc59ee89 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ typst-syntax = { path = "crates/typst-syntax", version = "0.13.1" } typst-timing = { path = "crates/typst-timing", version = "0.13.1" } typst-utils = { path = "crates/typst-utils", version = "0.13.1" } typst-assets = { git = "https://github.com/typst/typst-assets", rev = "c1089b4" } -typst-dev-assets = { git = "https://github.com/typst/typst-dev-assets", rev = "fddbf8b" } +typst-dev-assets = { git = "https://github.com/typst/typst-dev-assets", rev = "bfa947f" } arrayvec = "0.7.4" az = "1.2" base64 = "0.22" diff --git a/tests/suite/layout/align.typ b/tests/suite/layout/align.typ index c4ed9ab95..1c1a08683 100644 --- a/tests/suite/layout/align.typ +++ b/tests/suite/layout/align.typ @@ -34,7 +34,7 @@ To the right! Where the sunlight peeks behind the mountain. #align(start)[Start] #align(end)[Ende] -#set text(lang: "ar") +#set text(lang: "ar", font: "Noto Sans Arabic") #align(start)[يبدأ] #align(end)[نهاية] diff --git a/tests/suite/layout/inline/bidi.typ b/tests/suite/layout/inline/bidi.typ index 5f8712d56..d7601fa1d 100644 --- a/tests/suite/layout/inline/bidi.typ +++ b/tests/suite/layout/inline/bidi.typ @@ -45,6 +45,7 @@ Lריווח #h(1cm) R --- bidi-whitespace-reset --- // Test whether L1 whitespace resetting destroys stuff. +#set text(font: ("Libertinus Serif", "Noto Sans Arabic")) الغالب #h(70pt) ن#" "ة --- bidi-explicit-dir --- @@ -87,7 +88,7 @@ Lריווח #h(1cm) R columns: (1fr, 1fr), lines(6), [ - #text(lang: "ar")[مجرد نص مؤقت لأغراض العرض التوضيحي. ] + #text(lang: "ar", font: ("Libertinus Serif", "Noto Sans Arabic"))[مجرد نص مؤقت لأغراض العرض التوضيحي. ] #text(lang: "ar")[سلام] ], ) diff --git a/tests/suite/layout/inline/shaping.typ b/tests/suite/layout/inline/shaping.typ index dc73100b5..4dfc6eb11 100644 --- a/tests/suite/layout/inline/shaping.typ +++ b/tests/suite/layout/inline/shaping.typ @@ -29,6 +29,7 @@ ABCअपार्टमेंट \ ט --- shaping-font-fallback --- +#set text(font: ("Libertinus Serif", "Noto Sans Arabic")) // Font fallback for emoji. A😀B diff --git a/tests/suite/layout/inline/text.typ b/tests/suite/layout/inline/text.typ index 369aba7fd..a211ffd30 100644 --- a/tests/suite/layout/inline/text.typ +++ b/tests/suite/layout/inline/text.typ @@ -80,7 +80,7 @@ I'm in#text(tracking: 0.15em + 1.5pt)[ spaace]! --- text-tracking-arabic --- // Test tracking in arabic text (makes no sense whatsoever) -#set text(tracking: 0.3em) +#set text(tracking: 0.3em, font: "Noto Sans Arabic") النص --- text-spacing --- diff --git a/tests/suite/layout/repeat.typ b/tests/suite/layout/repeat.typ index a46bf6d28..8ba5d2661 100644 --- a/tests/suite/layout/repeat.typ +++ b/tests/suite/layout/repeat.typ @@ -17,7 +17,7 @@ --- repeat-dots-rtl --- // Test dots with RTL. -#set text(lang: "ar") +#set text(lang: "ar", font: ("Libertinus Serif", "Noto Sans Arabic")) مقدمة #box(width: 1fr, repeat[.]) 15 --- repeat-empty --- @@ -35,7 +35,7 @@ A#box(width: 1fr, repeat(rect(width: 6em, height: 0.7em)))B #set align(center) A#box(width: 1fr, repeat(rect(width: 6em, height: 0.7em)))B -#set text(dir: rtl) +#set text(dir: rtl, font: "Noto Sans Arabic") ريجين#box(width: 1fr, repeat(rect(width: 4em, height: 0.7em)))سون --- repeat-unrestricted --- diff --git a/tests/suite/model/cite.typ b/tests/suite/model/cite.typ index 1a79b690d..363b58489 100644 --- a/tests/suite/model/cite.typ +++ b/tests/suite/model/cite.typ @@ -151,6 +151,7 @@ B #cite() #cite(). --- issue-5775-cite-order-rtl --- // Test citation order in RTL text. #set page(width: 300pt) +#set text(font: ("Libertinus Serif", "Noto Sans Arabic")) @netwok aaa این است diff --git a/tests/suite/model/par.typ b/tests/suite/model/par.typ index d2c3416e0..fae0e1f56 100644 --- a/tests/suite/model/par.typ +++ b/tests/suite/model/par.typ @@ -231,7 +231,7 @@ Welcome \ here. Does this work well? --- par-hanging-indent-rtl --- #set par(hanging-indent: 2em) -#set text(dir: rtl) +#set text(dir: rtl, font: ("Libertinus Serif", "Noto Sans Arabic")) لآن وقد أظلم الليل وبدأت النجوم تنضخ وجه الطبيعة التي أعْيَتْ من طول ما انبعثت في النهار diff --git a/tests/suite/model/quote.typ b/tests/suite/model/quote.typ index 4137262a7..1c5954427 100644 --- a/tests/suite/model/quote.typ +++ b/tests/suite/model/quote.typ @@ -2,6 +2,7 @@ --- quote-dir-author-pos --- // Text direction affects author positioning +#set text(font: ("Libertinus Serif", "Noto Sans Arabic")) And I quote: #quote(attribution: [René Descartes])[cogito, ergo sum]. #set text(lang: "ar") @@ -9,6 +10,7 @@ And I quote: #quote(attribution: [René Descartes])[cogito, ergo sum]. --- quote-dir-align --- // Text direction affects block alignment +#set text(font: ("Libertinus Serif", "Noto Sans Arabic")) #set quote(block: true) #quote(attribution: [René Descartes])[cogito, ergo sum] diff --git a/tests/suite/syntax/numbers.typ b/tests/suite/syntax/numbers.typ index 1f15ac720..d7e6da4d1 100644 --- a/tests/suite/syntax/numbers.typ +++ b/tests/suite/syntax/numbers.typ @@ -2,6 +2,7 @@ --- numbers --- // Test numbers in text mode. +#set text(font: ("Libertinus Serif", "Noto Sans Arabic")) 12 \ 12.0 \ 3.14 \