Re: fast fonts

New Message Reply Date view Thread view Subject view Author view

Nicolas Gauvin (nicolas++at++cae.ca)
Wed, 9 Apr 1997 10:52:45 -0400


On Apr 8, 12:43pm, Linda Rae wrote:
> Subject: RE: fast fonts
>
> utilized raster fonts. With the OpenGL port, I am using now using X to set
> the font and print the strings. The resultant performance hit virtually
> kills the app.
>
>-- End of excerpt from Linda Rae

Have you tried the method described in the OpenGL Porting Guide from insight?

Basically you use glxUseXFont() at startup to create OpenGL display lists for
the raster fonts you need and then you can draw strings by calling those
display lists without any more round trip to the X server. I haven't tried it
myself
but I don't see any reason why this method would be slower than the irisgl
fonts. There is a code example in the insight book.

Or you may want to create your own 2D vector fonts into display list containing
OpenGL lines instead of bitmaps which may be more efficient and look better
when scaled up.

-- 
Nicolas Gauvin			CAE Electronics Ltd., 8585 Cote De Liesse
Software Developer 		Saint-Laurent, Quebec, Canada, H4L-4X4
3-D Graphics Applications	tel: +1 514 341 2000 extension 2275
nicolas++at++cae.ca			fax: +1 514 340 5496
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:02 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.