Closed Jollywatt closed 1 month ago
Update: I think this is an issue with rotate(reflow: true)
and measure()
(mis)interacting:
#set rect(inset: 0pt, stroke: red)
#let obj = rotate(30deg, reflow: true)[hello]
#rect(obj)
#context rect(
width: measure(obj).width,
height: measure(obj).height,
obj,
)
I would assume these results should match.
@laurmaedje is this an issue for the Typst compiler?
This doesn't look ideal indeed. You can open an issue.
@Jollywatt: You can use content
's angle: <angle>
for rotating cetz content.
Closing this, as it is not a cetz issue.
This is better shown than explained:
I assume we expect the both the bare
obj
and theobj
drawn in a cetz canvas to be the same. (Unless I am mistaken, and this is a result of some styles being applied withincetz.canvas
?) Either way, it beats me...