Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
True Type Font Support
10-19-2009, 09:38 PM
Post: #1
True Type Font Support
does anyone think true type font support would be a good thing to add to vdrift?

recently, through modifying the nehe freetype tutorial, i got a little font demo application done that loads the first 0-255 characters into a single texture and stores uv coordinates and position data for each. so if this would be desired i've got allot of the code written to do it.
Visit this user's website Find all posts by this user
Quote this message in a reply
10-20-2009, 10:34 PM
Post: #2
 
If you're interested in digging into VDrift fonts:

The font rendering in VDrift is pretty nifty, it uses a distance field (if you have shaders enabled) which, using only a small bitmap, provides exceptionally high quality (with antialiasing) even when the lettering is huge... and hardly uses any resources. It's an application of this:
In order to view links, you must have to reply to this thread.
to fonts.

The font generator I use to create the distance fields is this one:
In order to view links, you must have to reply to this thread.
from this thread:
In order to view links, you must have to reply to this thread.

You can fiddle with adding/changing fonts; the program outputs .png and .txt files and those can be copied over the ones in VDrift/data/skins/simple/fonts if you want to see them in-game.
Find all posts by this user
Quote this message in a reply
10-21-2009, 11:04 AM
Post: #3
 
hmm, cool!

i'm not actually that interested in fonts. just did a bunch of work with them recently in order to get a quick ttf bolt-on for any opengl apps i try to build in the future.

it looks like vdrift has a different system that offers some benefits over vanilla ttf.
Visit this user's website Find all posts by this user
Quote this message in a reply
10-22-2009, 10:32 AM
Post: #4
 
Yeah, so it does use TTF fonts sort of, but they have to be processed by a separate program first.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)