packages feed

typst-0.1.0.0: test/typ/visualize/shape-circle-01.typ

// Test auto sizing.
#set circle(inset: 0pt)

Auto-sized circle.
#circle(fill: rgb("eb5278"), stroke: 2pt + black,
  align(center + horizon)[But, soft!]
)

Center-aligned rect in auto-sized circle.
#circle(fill: red, stroke: green,
  align(center + horizon,
    rect(fill: green, inset: 5pt)[But, soft!]
  )
)

Rect in auto-sized circle.
#circle(fill: red,
  rect(fill: green, stroke: white, inset: 4pt)[
    #set text(8pt)
    But, soft! what light through yonder window breaks?
  ]
)

Expanded by height.
#circle(stroke: black, align(center)[A \ B \ C])