mirror of
https://github.com/typst/typst
synced 2025-05-16 01:55:28 +08:00
20 lines
418 B
XML
20 lines
418 B
XML
// Tests small patterns for pixel accuracy.
|
|
|
|
---
|
|
#box(
|
|
width: 8pt,
|
|
height: 1pt,
|
|
fill: pattern(size: (1pt, 1pt), square(size: 1pt, fill: black))
|
|
)
|
|
#v(-1em)
|
|
#box(
|
|
width: 8pt,
|
|
height: 1pt,
|
|
fill: pattern(size: (2pt, 1pt), square(size: 1pt, fill: black))
|
|
)
|
|
|
|
---
|
|
// Error: 22-52 pattern tile size must be non-zero
|
|
// Hint: 22-52 try setting the size manually
|
|
#line(stroke: pattern(path((0pt, 0pt), (1em, 0pt))))
|