PDA

View Full Version : QPainter drawText fails at larger font point sizes, QOpenGLPaintDevice



GimpMaster
22nd February 2018, 06:43
I am using QPainter to draw text onto an QOpenGLPaintDevice. Everything works great, drawLine, drawImage, etc.

When I use drawText it also works as expected. However if my font size increases from 40pt to 50pt or above the entire text that is drawn is now a filled rectangle corresponding to the correct font size. I've tried a number of different font families.

Any thoughts?

Thanks

wysota
25th February 2018, 07:20
Please provide a minimal compilable example reproducing the problem.