diff options
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/compiler/bench.typ | 2 | ||||
| -rw-r--r-- | tests/typ/compiler/shorthand.typ | 2 | ||||
| -rw-r--r-- | tests/typ/compiler/show-text.typ | 2 | ||||
| -rw-r--r-- | tests/typ/compute/foundations.typ | 2 | ||||
| -rw-r--r-- | tests/typ/layout/columns.typ | 2 | ||||
| -rw-r--r-- | tests/typ/layout/container-fill.typ | 6 | ||||
| -rw-r--r-- | tests/typ/layout/enum-numbering.typ | 2 | ||||
| -rw-r--r-- | tests/typ/layout/flow-orphan.typ | 2 | ||||
| -rw-r--r-- | tests/typ/layout/grid-2.typ | 2 | ||||
| -rw-r--r-- | tests/typ/layout/par-bidi.typ | 12 | ||||
| -rw-r--r-- | tests/typ/layout/par-indent.typ | 2 | ||||
| -rw-r--r-- | tests/typ/layout/par-knuth.typ | 2 | ||||
| -rw-r--r-- | tests/typ/layout/terms.typ | 4 | ||||
| -rw-r--r-- | tests/typ/layout/transform.typ | 2 | ||||
| -rw-r--r-- | tests/typ/math/op.typ | 2 | ||||
| -rw-r--r-- | tests/typ/text/features.typ | 6 | ||||
| -rw-r--r-- | tests/typ/text/font.typ | 2 | ||||
| -rw-r--r-- | tests/typ/text/hyphenate.typ | 5 | ||||
| -rw-r--r-- | tests/typ/text/microtype.typ | 2 | ||||
| -rw-r--r-- | tests/typ/text/tracking-spacing.typ | 2 |
20 files changed, 30 insertions, 33 deletions
diff --git a/tests/typ/compiler/bench.typ b/tests/typ/compiler/bench.typ index 194d996d..7276776d 100644 --- a/tests/typ/compiler/bench.typ +++ b/tests/typ/compiler/bench.typ @@ -1,3 +1,5 @@ +// Ref: false + // Configuration with `page` and `font` functions. #set page(width: 450pt, margin: 1cm) diff --git a/tests/typ/compiler/shorthand.typ b/tests/typ/compiler/shorthand.typ index 02c42ab0..6df5e340 100644 --- a/tests/typ/compiler/shorthand.typ +++ b/tests/typ/compiler/shorthand.typ @@ -7,7 +7,7 @@ The non-breaking~space does work. // Make sure non-breaking and normal space always // have the same width. Even if the font decided // differently. -#set text("Latin Modern Roman") +#set text("New Computer Modern") a b \ a~b diff --git a/tests/typ/compiler/show-text.typ b/tests/typ/compiler/show-text.typ index 705c1112..b175c17d 100644 --- a/tests/typ/compiler/show-text.typ +++ b/tests/typ/compiler/show-text.typ @@ -9,7 +9,7 @@ Die Zeitung Der Spiegel existiert. --- // Another classic example. #show "TeX": [T#h(-0.145em)#box(move(dy: 0.233em)[E])#h(-0.135em)X] -#show regex("(Lua)?(La)?TeX"): name => box(text("Latin Modern Roman")[#name]) +#show regex("(Lua)?(La)?TeX"): name => box(text("New Computer Modern")[#name]) TeX, LaTeX, LuaTeX and LuaLaTeX! diff --git a/tests/typ/compute/foundations.typ b/tests/typ/compute/foundations.typ index eb3e7e35..d6c0f82b 100644 --- a/tests/typ/compute/foundations.typ +++ b/tests/typ/compute/foundations.typ @@ -54,7 +54,7 @@ #eval("let") --- -#show raw: it => text("IBM Plex Sans", eval("[" + it.text + "]")) +#show raw: it => text("PT Sans", eval("[" + it.text + "]")) Interacting ``` diff --git a/tests/typ/layout/columns.typ b/tests/typ/layout/columns.typ index b5dbf96f..eafb0518 100644 --- a/tests/typ/layout/columns.typ +++ b/tests/typ/layout/columns.typ @@ -3,7 +3,7 @@ --- // Test normal operation and RTL directions. #set page(height: 3.25cm, width: 7.05cm, columns: 2) -#set text(lang: "ar", "Noto Sans Arabic", "IBM Plex Serif") +#set text(lang: "ar", "Noto Sans Arabic", "Linux Libertine") #set columns(gutter: 30pt) #box(fill: conifer, height: 8pt, width: 6pt) وتحفيز diff --git a/tests/typ/layout/container-fill.typ b/tests/typ/layout/container-fill.typ index 34849d88..f5947e06 100644 --- a/tests/typ/layout/container-fill.typ +++ b/tests/typ/layout/container-fill.typ @@ -1,7 +1,7 @@ #set page(height: 100pt) #let words = lorem(18).split() #block(inset: 8pt, width: 100%, fill: aqua, stroke: aqua.darken(30%))[ - #words.slice(0, 12).join(" ") - #box(fill: teal, outset: 2pt)[incididunt] - #words.slice(12).join(" ") + #words.slice(0, 13).join(" ") + #box(fill: teal, outset: 2pt)[tempor] + #words.slice(13).join(" ") ] diff --git a/tests/typ/layout/enum-numbering.typ b/tests/typ/layout/enum-numbering.typ index 1d905f69..ee4b25b9 100644 --- a/tests/typ/layout/enum-numbering.typ +++ b/tests/typ/layout/enum-numbering.typ @@ -37,7 +37,7 @@ --- // Test numbering with closure and nested lists. -#set text("Latin Modern Roman") +#set text("New Computer Modern") #set enum(numbering: (..args) => math.mat(args.pos()), full: true) + A + B diff --git a/tests/typ/layout/flow-orphan.typ b/tests/typ/layout/flow-orphan.typ index 482fd145..9c5c2399 100644 --- a/tests/typ/layout/flow-orphan.typ +++ b/tests/typ/layout/flow-orphan.typ @@ -8,7 +8,7 @@ This is the start and it goes on. --- -#set page("a8", height: 150pt) +#set page("a8", height: 140pt) #set text(weight: 700) // Fits fully onto the first page. diff --git a/tests/typ/layout/grid-2.typ b/tests/typ/layout/grid-2.typ index 7df64a56..66623878 100644 --- a/tests/typ/layout/grid-2.typ +++ b/tests/typ/layout/grid-2.typ @@ -1,7 +1,7 @@ // Test using the `grid` function to create a finance table. --- -#set page(width: 12cm, height: 2.5cm) +#set page(width: 11cm, height: 2.5cm) #grid( columns: 5, column-gutter: (2fr, 1fr, 1fr), diff --git a/tests/typ/layout/par-bidi.typ b/tests/typ/layout/par-bidi.typ index a7274e8a..aa881a7b 100644 --- a/tests/typ/layout/par-bidi.typ +++ b/tests/typ/layout/par-bidi.typ @@ -3,7 +3,6 @@ --- // Test reordering with different top-level paragraph directions. #let content = par[Text טֶקסט] -#set text("IBM Plex Serif") #text(lang: "he", content) #text(lang: "de", content) @@ -11,7 +10,7 @@ // Test that consecutive, embedded LTR runs stay LTR. // Here, we have two runs: "A" and italic "B". #let content = par[أنت A#emph[B]مطرC] -#set text("IBM Plex Serif", "Noto Sans Arabic") +#set text("PT Sans", "Noto Sans Arabic") #text(lang: "ar", content) #text(lang: "de", content) @@ -19,30 +18,29 @@ // Test that consecutive, embedded RTL runs stay RTL. // Here, we have three runs: "גֶ", bold "שֶׁ", and "ם". #let content = par[Aגֶ#strong[שֶׁ]םB] -#set text("IBM Plex Serif", "Noto Serif Hebrew") +#set text("Linux Libertine", "Noto Serif Hebrew") #text(lang: "he", content) #text(lang: "de", content) --- // Test embedding up to level 4 with isolates. -#set text(dir: rtl, "IBM Plex Serif") +#set text(dir: rtl) א\u{2066}A\u{2067}Bב\u{2069}? --- // Test hard line break (leads to two paragraphs in unicode-bidi). -#set text(lang: "ar", "Noto Sans Arabic", "IBM Plex Serif") +#set text(lang: "ar", "Noto Sans Arabic", "PT Sans") Life المطر هو الحياة \ الحياة تمطر is rain. --- // Test spacing. -#set text("IBM Plex Serif") L #h(1cm) ריווחR \ Lריווח #h(1cm) R --- // Test inline object. -#set text(lang: "he", "IBM Plex Serif") +#set text(lang: "he") קרנפיםRh#box(image("/rhino.png", height: 11pt))inoחיים --- diff --git a/tests/typ/layout/par-indent.typ b/tests/typ/layout/par-indent.typ index 3e44d73b..8efda42f 100644 --- a/tests/typ/layout/par-indent.typ +++ b/tests/typ/layout/par-indent.typ @@ -20,7 +20,7 @@ starts a paragraph without indent. Except if you have another paragraph in them. -#set text(8pt, lang: "ar", "Noto Sans Arabic", "IBM Plex Sans") +#set text(8pt, lang: "ar", "Noto Sans Arabic", "Linux Libertine") #set par(leading: 8pt) = Arabic diff --git a/tests/typ/layout/par-knuth.typ b/tests/typ/layout/par-knuth.typ index dbe13fc4..0467c9a1 100644 --- a/tests/typ/layout/par-knuth.typ +++ b/tests/typ/layout/par-knuth.typ @@ -1,6 +1,6 @@ #set page(width: auto, height: auto) #set par(leading: 4pt, justify: true) -#set text(family: "Latin Modern Roman") +#set text(family: "New Computer Modern") #let story = [ In olden times when wishing still helped one, there lived a king whose diff --git a/tests/typ/layout/terms.typ b/tests/typ/layout/terms.typ index 57864423..6e828094 100644 --- a/tests/typ/layout/terms.typ +++ b/tests/typ/layout/terms.typ @@ -25,10 +25,10 @@ --- // Test style change. #set text(8pt) -/ First list: #lorem(4) +/ First list: #lorem(6) #set terms(hanging-indent: 30pt) -/ Second list: #lorem(4) +/ Second list: #lorem(5) --- // Test grid like show rule. diff --git a/tests/typ/layout/transform.typ b/tests/typ/layout/transform.typ index cc744952..de193f72 100644 --- a/tests/typ/layout/transform.typ +++ b/tests/typ/layout/transform.typ @@ -23,7 +23,7 @@ [X] } -#set text("Latin Modern Roman", size) +#set text("New Computer Modern", size) Neither #tex, \ nor #xetex! diff --git a/tests/typ/math/op.typ b/tests/typ/math/op.typ index b76a2da6..882a7c4a 100644 --- a/tests/typ/math/op.typ +++ b/tests/typ/math/op.typ @@ -11,7 +11,7 @@ $ &sin x + log_2 x \ --- // Test scripts vs limits. -#set text("Latin Modern Roman") +#set text("New Computer Modern") Discuss $lim_(n->oo) 1/n$ now. $ lim_(n->infinity) 1/n = 0 $ diff --git a/tests/typ/text/features.typ b/tests/typ/text/features.typ index cae240f3..c706afed 100644 --- a/tests/typ/text/features.typ +++ b/tests/typ/text/features.typ @@ -7,7 +7,6 @@ --- // Test smallcaps. -#set text("Roboto") #smallcaps[Smallcaps] --- @@ -22,27 +21,24 @@ fi vs. #text(ligatures: false)[No fi] --- // Test number type. -#set text("Roboto") #set text(number-type: "old-style") 0123456789 \ #text(number-type: auto)[0123456789] --- // Test number width. -#set text("Roboto") #text(number-width: "proportional")[0123456789] \ #text(number-width: "tabular")[3456789123] \ #text(number-width: "tabular")[0123456789] --- // Test extra number stuff. -#set text("IBM Plex Sans") +#set text("IBM Plex Serif") 0 vs. #text(slashed-zero: true)[0] \ 1/2 vs. #text(fractions: true)[1/2] --- // Test raw features. -#set text("Roboto") #text(features: ("smcp",))[Smcp] \ fi vs. #text(features: (liga: 0))[No fi] diff --git a/tests/typ/text/font.typ b/tests/typ/text/font.typ index d2add0f1..e832ab1d 100644 --- a/tests/typ/text/font.typ +++ b/tests/typ/text/font.typ @@ -41,7 +41,7 @@ Emoji: 🐪, 🌋, 🏞 #text(red, "Text") \ #text("Ubuntu", blue, "Text") \ #text([Text], teal, "IBM Plex Serif") \ -#text(forest, "Latin Modern Roman", [Text]) \ +#text(forest, "New Computer Modern", [Text]) \ --- // Error: 11-16 unexpected argument diff --git a/tests/typ/text/hyphenate.typ b/tests/typ/text/hyphenate.typ index 4dc5255f..42946a88 100644 --- a/tests/typ/text/hyphenate.typ +++ b/tests/typ/text/hyphenate.typ @@ -5,13 +5,14 @@ #set text(hyphenate: true) #set page(width: auto) #grid( - columns: (70pt, 60pt), + columns: (50pt, 50pt), [Warm welcomes to Typst.], text(lang: "el")[διαμερίσματα. \ λατρευτός], ) --- // Test disabling hyphenation for short passages. +#set page(width: 110pt) #set text(hyphenate: true) Welcome to wonderful experiences. \ @@ -45,6 +46,6 @@ It's a #emph[Tree]beard. // punctuation instead of just the words. So this tests that we don't // do that. The test passes if there's just one hyphenation between // "net" and "works". -#set page(width: 70pt) +#set page(width: 60pt) #set text(hyphenate: true) #h(6pt) networks, the rest. diff --git a/tests/typ/text/microtype.typ b/tests/typ/text/microtype.typ index fc15ec07..252d163d 100644 --- a/tests/typ/text/microtype.typ +++ b/tests/typ/text/microtype.typ @@ -12,7 +12,7 @@ ] // Test hanging punctuation with RTL. -#set text(lang: "he", "IBM Plex Sans", "Noto Serif Hebrew") +#set text(lang: "he", "PT Sans", "Noto Serif Hebrew") בנייה נכונה של משפטים ארוכים דורשת ידע בשפה. אז בואו נדבר על מזג האוויר. --- diff --git a/tests/typ/text/tracking-spacing.typ b/tests/typ/text/tracking-spacing.typ index e0bd2696..413194ba 100644 --- a/tests/typ/text/tracking-spacing.typ +++ b/tests/typ/text/tracking-spacing.typ @@ -11,7 +11,7 @@ I'm in#text(tracking: 0.15em + 1.5pt)[ spaace]! --- // Test that tracking doesn't disrupt mark placement. -#set text("IBM Plex Sans", "Noto Serif Hebrew") +#set text("PT Sans", "Noto Serif Hebrew") #set text(tracking: 0.3em) טֶקסט |
