Armagetron Font Improvement

What do you want to see in Armagetron soon? Any new feature ideas? Let's ponder these ground breaking ideas...
Crazy
Core Dumper
Posts: 106
Joined: Sat Oct 13, 2007 6:24 am

Armagetron Font Improvement

Post by Crazy »

you know how some characters you can barely see what it is?
thats because we're using Raster graphics for the characters.

but, wouldn't it be so much better to use Vector graphics like .SVG format?
i mean, as you can see on wiki ( url]http://en.wikipedia.org/wiki/Vector_graphics[/url] ) the difference is amazing.

if we used these instead we could make our fonts big with lots of detail and just scale it down for in-game.


would this be possible?

if it would, i could try making a .SVG copy of the current font....
User avatar
Lucifer
Project Developer
Posts: 8640
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas
Contact:

Post by Lucifer »

0.3.0 uses a truetype font.
Image

Be the devil's own, Lucifer's my name.
- Iron Maiden
Crazy
Core Dumper
Posts: 106
Joined: Sat Oct 13, 2007 6:24 am

Post by Crazy »

sorry, im not super fimiliar with font file formats....

do truetype fonts use Vector graphics?
User avatar
Lucifer
Project Developer
Posts: 8640
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas
Contact:

Post by Lucifer »

Yes. In fact, there's a lot more to fonts than just vectors. ;)
Image

Be the devil's own, Lucifer's my name.
- Iron Maiden
Crazy
Core Dumper
Posts: 106
Joined: Sat Oct 13, 2007 6:24 am

Post by Crazy »

?

/me doesn't know much about fonts....


like what?

so would it be possible to use a better quality font on, lets say, version.....

/me checks version

0.2.8.2.1?
User avatar
Lucifer
Project Developer
Posts: 8640
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas
Contact:

Post by Lucifer »

Everything I learned about fonts, I learned from Google.

The answer to your last question is "no". The font rendering was totally replaced in 0.3.0, and that's what it takes to get a better quality font. Since the work has already been done in the trunk, we're not likely to put it in the stable branch.
Image

Be the devil's own, Lucifer's my name.
- Iron Maiden
Crazy
Core Dumper
Posts: 106
Joined: Sat Oct 13, 2007 6:24 am

Post by Crazy »

ok,

but if lets say i made a copy of these in .svg and put it in the right directory, would that work?
A)Image B)Image C)Image

if so, which would i be copying?A, B, or C?

thanks for the help
User avatar
Lucifer
Project Developer
Posts: 8640
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas
Contact:

Post by Lucifer »

No, it won't work, because we don't have any way to load svg images.
Image

Be the devil's own, Lucifer's my name.
- Iron Maiden
Crazy
Core Dumper
Posts: 106
Joined: Sat Oct 13, 2007 6:24 am

Post by Crazy »

ok, thanks for all the help:)
User avatar
Zero V2
On Lightcycle Grid
Posts: 44
Joined: Sun Dec 23, 2007 3:34 pm
Location: N/A

Post by Zero V2 »

Those are not Raster fonts.
Image
Crazy
Core Dumper
Posts: 106
Joined: Sat Oct 13, 2007 6:24 am

Post by Crazy »

how aren't they raster images?

they're .png images.....
User avatar
Zero V2
On Lightcycle Grid
Posts: 44
Joined: Sun Dec 23, 2007 3:34 pm
Location: N/A

Post by Zero V2 »

The Raster fonts are used in the DOS. They're much smaller, and when resized they don't have smooth lines, but still appear pixelated.

There isn't any gradient affects, so no matter what they look pixelated.

Also, Raster fonts can be very small. Like around 8x12 pixels, and each font is equal in size, so no matter what they align with eachother going up and down.

Just open up a command line. You can see them.

Oh, and you can tell by looking at the "0" character, which has a diagonal line cutting through it in the Raster fonts.
Image
Crazy
Core Dumper
Posts: 106
Joined: Sat Oct 13, 2007 6:24 am

Post by Crazy »

almost like you see in armagetron or this image that armagetron uses, hun?

Image
User avatar
Lucifer
Project Developer
Posts: 8640
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas
Contact:

Post by Lucifer »

Raster fonts are fonts that are rendered directly to screen from bitmaps. While you have a point, it's only a small one. :) It is more correct to call it a bitmap font or a pixmap font.

The letters are used as textures, and openGL does the rendering, as far as we're concerned.

For that matter, we get no gain by using svg for the same reason. At least, not without doing a whole ton of work. See, we'd have to parse the svg file, then for each frame compute the ideal vectorized version of each letter, render it to a pixmap, send it to the video card, and then watch it render. We'd probably lose performance thataway, in fact. I don't even think ftgl goes to all that effort for every letter, I think it just computes a best guess and reuses that for many consecutive frames, only recomputing when it needs to. Anyway, all the optimizations and bug-fixing we'd have to do to make svg work are taken care of by using FTGL, which renders truetype fonts for us.

Anyway, try to remember that arguing between "raster fonts" and "bitmap/pixmap fonts" is a pretty worthless use of time. :) Might as well argue the difference between sprites and blits/blobs on PCs.
Image

Be the devil's own, Lucifer's my name.
- Iron Maiden
Crazy
Core Dumper
Posts: 106
Joined: Sat Oct 13, 2007 6:24 am

Post by Crazy »

/me agrees

sprite is a kind of pop!;)
Post Reply