QPainter font on QOpenGLPaintDevice issues
-
wrote on 22 Feb 2018, 06:42 last edited by
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
-
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
-
wrote on 23 Feb 2018, 04:30 last edited by
Thank you,
I've tried setting pixel size and point size. Funny enough it breaks around the same value.
-
Thank you,
I've tried setting pixel size and point size. Funny enough it breaks around the same value.
1/4