I need to convert a true type font into a list of three dimensional vertices using openGL. I looked at the NeHe tutorial, but it only creates a display list from the font and as far as I can tell it is not possible for me to extract the vertices from a display list. So how can I get the vertices? Do I have to do some weird math with the data in the font file?

Recommended Answers

All 2 Replies

Well, how does the tutorial read the vertices? While creating the display list, it would be making vertex calls right? Maybe you can open up the code that does that and check how it is done?

No, the display lists are created using a call to wglUseFontOutlines so I have no access to the code that creates the display list.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.