Overlaying text

I am working on an application that displays wireframe geometry. Some elements are labelled via a short text string. Environment is MS Windows and I’m using wglUseFontBitmaps, glRasterPos, and glCallLists to create the text.

My problem is that there are many cases where one text string will appear directly on top of another. I’d like to have the “later” string completely overlay the earlier string so that only the later one is visible. The string does not appear in the input data but is the result of some calculations. The text strings are all of the same size & length.

Making the text background opaque would be acceptable. I suspect there’s an easy way to do this that I’m missing - can anyone point me in the right direction?


John C