cetz.draw.content
sizes content differently than box
#751
-
Since version v0.3.0, cetz's
It draws a red frame around the text using Behavior in v0.2.2: Behavior in v0.3.1: I was previously using the old behavior to create simple UML class diagrams, e.g in v0.2.2 It's built from a Typst Using text without descenders reduces the added padding but does not fully eliminate it, so there is also something else changed. Now, I could create the frame using Is this change intended and if so, is there a way for me to restore the previous behavior? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
The previous sizing should be restored by wrapping your content in |
Beta Was this translation helpful? Give feedback.
-
Perfect, that worked flawlessly. Feel free to close the issue if the change is intended. |
Beta Was this translation helpful? Give feedback.
-
The change was intended because of how inline math sizes. But maybe this should be a style key. I will convert this issue to a discussion. |
Beta Was this translation helpful? Give feedback.
-
Do you have some UML-Class diagram generation code you can share? I am also interested in doing this for very simple diagrams using Typst. |
Beta Was this translation helpful? Give feedback.
The previous sizing should be restored by wrapping your content in
text(bottom-edge: "baseline", ...)
.