Hi Mathias,

I haven't dived into reviewing this submissions yet as I still haven't
decided what the best route to take is.  This week I'm moving towards having
a dedicated osgQt utility library that would have various integration
classes.  It would seem like your QFontImplementation would be a candidate
for this, as would the code in osgQtBrowser for webkit integration.  There
is also the sticky issue of a Viewer/GraphicsContext/QWidget integration of
some form.

I have a little experience with Qt, but I'm far from an expert, so I could
kick things off such as by refactoring your submission and osgQtBrowser, but
it'd be very useful if the community could come together to address the more
awkward parts such as how best to implement viewer integration - we have
several integration examples but none work fully in all situations.

Does this sound like a good plan?  Will you be able to help provide some Qt
expertise to get the lib in shape?

Cheers,
Robert.

2010/1/29 Mathias Fröhlich <[email protected]>

>
> Hi Robert,
>
> Attached is a osgplugin that provides a qt qfont meta font loader for use
> in
> qt based applications.
> It works by loaing objectfiles that have the string returned by
> QFont::toString() with the '.qfont' extension appended. What you get is a
> osgText::Font providing the glyphs as rendered by qfont/qpainter.
> The advantages are:
> * you can use Qt based font selection mechanisms to choose fonts for the
> scenegraph.
> * This works cross platform without the need to compile freetype/fontconfig
> on
> say win*.
>
> This only works in qt applications which run a singethreaded viewer.
> Currently if the loader is called without a living qapplication instance,
> it
> gracefully returns FILE_NO_FOUND.
>
> This is what I have today and what I used to develop and test this
> implementation.
> We intend to use this in a qt based visualization application for the above
> reasons.
>
> Since this only works from within qt applications, I am unsure if this is a
> good idea to have a osgDB plugin for that. Also our intented usage is just
> take the QFontImplementation from the attached file and use that in our
> application to feed osgText instances directly with such fonts without the
> intermediate step of a plugin.
>
> I would like to feed that back to osg I would ask if we want to keep that
> as
> plugin as delivered or if it might make more sense to just have that in one
> of the osg examples to show how this could be done?
>
> Greetings
>
> Mathias
>
> --
> Dr. Mathias Fröhlich, science + computing ag, Software Solutions
> Hagellocher Weg 71-75, D-72070 Tuebingen, Germany
> Phone: +49 7071 9457-268, Fax: +49 7071 9457-511
> --
> Vorstand/Board of Management:
> Dr. Bernd Finkbeiner, Dr. Roland Niemeier,
> Dr. Arno Steitz, Dr. Ingrid Zech
> Vorsitzender des Aufsichtsrats/
> Chairman of the Supervisory Board:
> Michel Lepert
> Sitz/Registered Office: Tuebingen
> Registergericht/Registration Court: Stuttgart
> Registernummer/Commercial Register No.: HRB 382196
>
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to