John Popplewell wrote:
...
>I have enclosed a new 'logo.py' file with properly formed triangles
>and a slightly modified 'text.py'. The old 'logo.py' can still be
>displayed (revealing the naughty triangles!) by renaming the 'logo.py'
>files.
>
Checked into CVS.
>The code I used to generate the new 'logo.py' file is windows-only since
>it uses win32 code to access True-Type font outlines. It then uses GLU to
>tesselate the polygon/hole contours, and does an extrusion.
>
I'd still be interested in this as a demo, we're not fanatic about
everything needing to be cross platform :) . We have demos in
OpenGLContext using the wglUseFontOutlines approach, but nothing that's
directly accessing the TT font outlines as of yet. There is a
cross-platform Python TT font reader (fonttools), so if you have code to
go from outlines to polygonal text, it might be possible to adapt that
to the task.
>A version making use of FreeType2 would be possible - I will look into it.
>Maybe someone's already done this, it does sound familiar ...
>
I believe Tarn wrapped gltt or ftgl, or one of the other cross-platform
True-Type text-rendering libraries at some point, but that code has been
lost AFAIK. There was also some question about the licence if I recall
correctly.
Thanks, and enjoy,
Mike
_______________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://members.rogers.com/mcfletch/
|