hecrj / wgpu_glyph

A fast text renderer for wgpu (https://github.com/gfx-rs/wgpu)
https://docs.rs/wgpu_glyph
MIT License
443 stars 77 forks source link

Rotate text #41

Open luke-titley opened 4 years ago

luke-titley commented 4 years ago

Hey, wgpu_glyph is awesome. I am using it for a nodegraph UI, and it's beautiful. I have one question though. What do you advise as the best way to rotate text? I've found 'draw_queued_with_transform', which allows me to provide a transform matrix for the position/scale/rotation of the text I'm drawing but:

I want to double check I'm not going down the wrong path.