hoffstadt / hoffstadt/DearPyGui
dpg.draw_text cannot rotate by applying a rotation matrix.
- Dominant language
- C++
- Stars
- 15.6k
- Forks
- 783
- PR merge metrics
- No merged PRs in 30d
Description
Version: 1.10.1
Operating System: Windows 11
## My Issue/Question
The text drew by dpg.draw_text cannot be rotate.
## To Reproduce
Steps to reproduce the behavior:
1.add a draw_node
2.use draw_text in draw node
3.apply the draw node a rotation matrix
4.only the text draw won't rotate,but other draws( lines, rects, circles, etc) is normal.
## Expected behavior
the text draw should normally be rotate after applying the transform matrix to it's parent(draw_node)
## Screenshots/Video

## Standalone, minimal, complete and verifiable example
```python
import dearpygui.dearpygui as dpg,math
dpg.create_context()
dpg.create_viewport()
dpg.setup_dearpygui()
with dpg.window(label="tutorial", width=550, height=550):
with dpg.drawlist(width=500, height=500):
with dpg.draw_node(tag="root node"):
dpg.draw_text([0,0],text='test Text', color=[255, 255, 255], size=20)
dpg.apply_transform("root node", dpg.create_rotation_matrix(math.pi*0.5, [0,0,-1]))
dpg.show_viewport()
while dpg.is_dearpygui_running():
dpg.render_dearpygui_frame()
dpg.destroy_context()
```
Contributor guide
Assessment
This issue has not been assessed yet.