Andy Ross writes:
>
>Christian Mayer wrote:
>> Andy Ross wrote:
>> > Problem is, I don't know anything about the glut font format, and a
>> > cursory look around the web didn't turn up any pointers.  Does
>> > anyone know this stuff well enough to write up a quick format
>> > document?
>>
>> You don't need to create a GLUT font. You only need to create a *.rgb
>> texture file with the renderd letters for PLIB. Just have a look at
>> those that are already distributed with PLIB and the PLIB
>source code.
>
>But the font metrics have to be stored somewhere, right?  That was my
>point: creating a texture file is really easy.  But actually rendering
>an arbitrary font to the screen requires more info, and I don't know
>how or where to put it.  I was under the impression that plib used the
>glut ".txf" font format, but maybe I'm mistaken?

umh....  < sollowing snipped from http://plib.sourceforge.net/fnt/index.html
>

Making New TXF Fonts.
The '.txf' font format was designed by Mark Kilgard - who also produced some
tools for dealing with them.
Check Marks's document about Textured Fonts for further information.
Of particular interest is Mark's "gentexfont" program that can create a TXF
format font from an X-windows font.

You can find out which X-fonts are stored on your machine using the
/usr/X11/bin/xlsfonts program.

There are over a dozen sample TXF fonts stored in examples/src/fnt/data.


<link to Mark's page >
http://www.opengl.org/developers/code/mjktips/TexFont/TexFont.html


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to