mirror of
https://github.com/typst/typst
synced 2025-05-15 17:45:27 +08:00
10 lines
182 B
Typst
10 lines
182 B
Typst
--- measure ---
|
|
// Test `measure`.
|
|
#let f(lo, hi) = context {
|
|
let h = measure[Hello].height
|
|
assert(h > lo)
|
|
assert(h < hi)
|
|
}
|
|
#text(10pt, f(6pt, 8pt))
|
|
#text(20pt, f(13pt, 14pt))
|