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 

Attachment: qfont.tar.bz2
Description: application/tbz

_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to