Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.8.0
-
None
-
macBookPro 2017 15'', Ventura 13.7.4
Description
If a Text element has `textFormat` set to `Text.MarkdownText` and `pixelSize` set to `80px` with the following text:
```
- Header
1. List
2. List
```
the list items will be partially rendered outside of their bounding box, but the header will remain within bounds.
Attached is a minimal reproduction code that contains a `Rectangle` with a child `Text` item. The rectangle's width and height are bound to `Text.contentWidth` and `Text.contentHeight`, respectively, along with a `TextEdit` to set the text on the `Text` item. There is also a slider to control the `pixelSize`. By moving the slider, the text size increases, causing some parts of the text to extend beyond the content size of the `Text` item.
One possible workaround is to set the pixel size to a constant value (e.g., 35px) and use `scale` to change the size. But I think is kind of not a right way to control the font size.