Speedy2D icon indicating copy to clipboard operation
Speedy2D copied to clipboard

Text rendering drawing square instead of glyph

Open d0rianb opened this issue 3 years ago • 2 comments

When I use graphics.draw_text(...), I often get black rectangle instead of the text at the first frame : screenshotscreenshot When I ask for a redraw, (and so I update the text layout), the next frame is clean and the text appears clear. Is it an issue with Rc<FormattedTextBlock> ?

d0rianb avatar Jan 28 '22 09:01 d0rianb

Would you be able to take an OpenGL trace of this issue occurring and send it to me please? This can be done using the apitrace tool:

apitrace trace <your program>

QuantumBadger avatar Jan 28 '22 10:01 QuantumBadger

Unfortunatly I can't figure out how to get apitrace working on macOs. I still have errors with 'OpenGl Framework not found' since it has been deprecated a few time ago by Apple :(

d0rianb avatar Feb 03 '22 12:02 d0rianb

I've finally managed to reproduce this issue! It seems to occur if there are frames where no text is drawn, followed by frames where text does get drawn. I need to investigate this more.

QuantumBadger avatar Feb 04 '23 16:02 QuantumBadger

Now released in v1.10.0!

QuantumBadger avatar Feb 04 '23 18:02 QuantumBadger