Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: How to display truetype text as quickly as possible?

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2001
    Location
    Hangzhou, P.R.China
    Posts
    20

    How to display truetype text as quickly as possible?

    I find that Autocad 2000(or 2002) displays truetype text very fast, however, when i use function "wglUseFontOutlines" to display truetype text in windows 2000 platform, when the string length exceeds 50, I will find a significant slow down when building the display list.

    If there is some way to display truetype text in opengl. The text extrusion can be ignored.

    Thanks for your attention!

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,651

    Re: How to display truetype text as quickly as possible?

    Hi !

    One way is to lower the resolution of the outline font, less vertices and it will render faster (and look a bit less nice, it all comes with a price).

    Also make sure you render it as fast as possible, disable lighting depth buffer, thins that you don't need.

    If that's not enough, then I guess you have to look into other solutions, font textures are one of the fastest way, but it's a bit more messy and can use up a lot of memory if you need lot's of characters.

    Mikael

  3. #3
    Intern Contributor
    Join Date
    Mar 2001
    Location
    Duplje, Slovenija
    Posts
    76

    Re: How to display truetype text as quickly as possible?

    or you can try rendering truetype fonts to texture at loadtime and then use bitmap fonts.. this way you get best of both sides.. speed and custom fonts

  4. #4
    Junior Member Regular Contributor
    Join Date
    Dec 2001
    Location
    Belmont, CA, USA
    Posts
    224

    Re: How to display truetype text as quickly as possible?

    Originally posted by DarkWIng:
    or you can try rendering truetype fonts to texture at loadtime and then use bitmap fonts.. this way you get best of both sides.. speed and custom fonts
    ...using wglUseFontBitmaps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •