Polygon fonts for SDL/OpenGL

For my next project I would really like to have a source of nice polygon
fonts. Ideally I would like something that converts a truetype font to a
nice set polygon definitions. Does anyone know a package that will do
that conversion? I’ve searched and haven’t found anything that does what
I want. FTGL comes close, in that it contains code to tessellate the
polygon data in a .ttf file.

I’m about to start hacking FTGL to do what I want. But, I thought I’d
ask if anyone else has already done it before I spend the time.

	Bob Pendleton-- 

±-----------------------------------+

I don’t, but if you get decent results and are open-sourcing the
results, I’d be interested in hearing about it.On Thu, Jan 09, 2003 at 08:48:48PM -0600, Bob Pendleton wrote:

I’m about to start hacking FTGL to do what I want. But, I thought I’d
ask if anyone else has already done it before I spend the time.


Glenn Maynard

Theres a (Win32 I think) program with source at
http://www.fluidstudios.com/freeware.html
I haven’t tried it, but might be worth a look.

Jude

Bob Pendleton wrote:>For my next project I would really like to have a source of nice polygon

fonts. Ideally I would like something that converts a truetype font to a
nice set polygon definitions. Does anyone know a package that will do
that conversion? I’ve searched and haven’t found anything that does what
I want. FTGL comes close, in that it contains code to tessellate the
polygon data in a .ttf file.

I’m about to start hacking FTGL to do what I want. But, I thought I’d
ask if anyone else has already done it before I spend the time.

   Bob Pendleton

I’m about to start hacking FTGL to do what I want. But, I thought I’d
ask if anyone else has already done it before I spend the time.

I don’t, but if you get decent results and are open-sourcing the
results, I’d be interested in hearing about it.

If I have to do it and it works, I’ll make it available. FTGL is
available either under LGPL or under a “BSDish” license, so no problem
with releasing it.

	Bob PendletonOn Thu, 2003-01-09 at 20:57, Glenn Maynard wrote:

On Thu, Jan 09, 2003 at 08:48:48PM -0600, Bob Pendleton wrote:


Glenn Maynard


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

±-----------------------------------+

Theres a (Win32 I think) program with source at
http://www.fluidstudios.com/freeware.html
I haven’t tried it, but might be worth a look.

Thanks for the link. I downloaded it an took a look. It generates bitmap
fonts, not polygon fonts, and although the source code is provided it is
written in such a way that it can only run on Windows.

	Bob PendletonOn Fri, 2003-01-10 at 02:26, Jude Venn wrote:

Jude

Bob Pendleton wrote:

For my next project I would really like to have a source of nice polygon
fonts. Ideally I would like something that converts a truetype font to a
nice set polygon definitions. Does anyone know a package that will do
that conversion? I’ve searched and haven’t found anything that does what
I want. FTGL comes close, in that it contains code to tessellate the
polygon data in a .ttf file.

I’m about to start hacking FTGL to do what I want. But, I thought I’d
ask if anyone else has already done it before I spend the time.

   Bob Pendleton

SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

±-----------------------------------+

For my next project I would really like to have a source of nice
polygon
fonts. Ideally I would like something that converts a truetype font to
a
nice set polygon definitions. Does anyone know a package that will do
that conversion? I’ve searched and haven’t found anything that does
what
I want. FTGL comes close, in that it contains code to tessellate the
polygon data in a .ttf file.

You can use lib freetype to get the outlines of each character and
tesselate them with gluTesselators or by your own.
Tesselation of non convex polygons is not trivial at least if they
contain holes. There are some good algorithms around there (e.g. Seidel
algorithm). Some time ago a patched a small lib to work for me. You can
contact me, if you want the sourcecode. I haven’t made it public
available yet.

Regards,
Jan> I’m about to start hacking FTGL to do what I want. But, I thought I’d

ask if anyone else has already done it before I spend the time.

  Bob Pendleton


±-----------------------------------+


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

For my next project I would really like to have a source of nice
polygon
fonts. Ideally I would like something that converts a truetype font to
a
nice set polygon definitions. Does anyone know a package that will do
that conversion? I’ve searched and haven’t found anything that does
what
I want. FTGL comes close, in that it contains code to tessellate the
polygon data in a .ttf file.

You can use lib freetype to get the outlines of each character and
tesselate them with gluTesselators or by your own.

That is why I was looking at FTGL. It uses lib freetype to get the font
outlines, then uses gluTesselators to convert them to triangle strips
and fans. But, FTGL does it at run time and is written in C++ and I need
the data to be available at other times and in other languages.

Tesselation of non convex polygons is not trivial at least if they
contain holes. There are some good algorithms around there (e.g. Seidel
algorithm). Some time ago a patched a small lib to work for me. You can
contact me, if you want the sourcecode. I haven’t made it public
available yet.

Thanks, please send me the code.

Tessellation of polys and curves doesn’t bother me. I just don’t see the
point in doing anything I don’t have to do. It saves time to use
existing code.On Fri, 2003-01-10 at 16:02, Jan Becker wrote:

Regards,
Jan

I’m about to start hacking FTGL to do what I want. But, I thought I’d
ask if anyone else has already done it before I spend the time.

  Bob Pendleton


±-----------------------------------+


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

±-----------------------------------+