Saving a Display List out to a text file

Is it possible, and if so, where do I start?

I’m generating a list like so : wglUseFontOutlines(DC, 0, 255, GLF_START_LIST+255, 0.0, 0.15, WGL_FONT_POLYGONS, @agmf);

and since I’m using a font that I doubt many people have, I’d prefer to save the list rather than bundle in the font and install it on other ppl’s computers.

So, what can I do?

No. That’s not possible. Lists are keeped on the server part of OpenGL. And they are converted to internal format, that is card-specific.
But what a nice idea!
Post this in
“Suggestions for the next release of OpenGL”

BTW AFAIK This wglFont is not optimal(they change a lot of glCommands). So write a font tesselator instead of working with lists.

Randy, http://www.geocities.com/udodenko

‘3d exporter’ is able to save a model in a text file as a display list.
so what u could do is draw the font in a 3dmodeling program save it as eg 3ds file, then open that in 3dexporter

You could always try the feedback mechanism, retrieve only the vertex data that way, save that into a file (header-file perhaps) and build the lists every time for your self.

Its cumbersome, but you’ll get the font at least.