[Qt-interest] QGLWidget with text - zoom in / zoom out
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Mon Jul 27 16:44:56 CEST 2009
_h_ wrote on Friday, July 24, 2009 12:42 PM:
> ... The only way I can think is to
> increase/decrease the text size based on the zoom, is it right
> solution? Thank you.
This would be one solution. Another one would be rendering the text as "real" 3D objects (in contrast to 2D bitmap letters) which are scaled just like the rest of your OpenGL scene.
There are libraries which render TrueType fonts as 3D objects. I haven't used anyone of these yet, but a quick Google search "opengl truetype rendering" turns up with:
http://linux.maruhn.com/sec/gltt.html
http://www.opengl.org/resources/features/fontsurvey/ (nice overview!)
Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list