Andy Ross writes:
>
>Norman Vine wrote:
>> 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.
>
>This is how far I got.  Unfortunately, Mark's documentation is all
>about how to use the font library.  He doesn't say squat about what
>the file format it.  I even started looking at the code, but there's
>no format documentation to be found there either.  Reverse engineering
>the format based on the parser source code isn't my idea of a fun
>hack.
>
>I'd submit that this lack of documentation has a lot to do with why
>all of the existing glut fonts look so terrible.  The only software
>that generates them works with X11 bitmap fonts.

Andy

Have you tried using the Font generator
http://www.opengl.org/developers/code/mjktips/TexFont/gentexfont.c

I have used this successfully with Cygwin and is in how ALL of the
PLib fonts were created.


Here's Mark's example of the command used to generate the sorority.txf file:
Just change the Font name and the 'glist' to be what you want

  gentexfont \
    -fn '-sgi-sorority-medium-r-normal--40-*-*-*-p-*--ascii' \
    -file sorority.txf \
    -glist \
'`"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN\
OPQRSTUVWXYZ01234567890 \!@#$$%^&*()-=+/,.<>;:~{}[]' \
    -bitmap \
    -w 256 \
    -h 256 \
    -gap 3

Norman


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

Reply via email to