Fonts implemented using FTGL

Everything related to the code /
Tout ce qui touche au code
Post Reply
User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Fonts implemented using FTGL

Post by zuzuf » Sun Jan 25, 2009 12:21 am

I've implemented Fonts using FTGL.

This is still very experimental, and currently there is only Linux integration. Fonts are loaded properly, displayed almost correctly (rendering is ok but text is misplaced sometimes) and we need some great fonts and some skin colors for fonts :) (white fonts are just strange over gray buttons ...)

So this needs testing on other platforms (OS X, win32).

If you feel the need to test 3DMEditor, it's probably broken (Font not initialized, etc ...)

Also I rewrote some Font related stuffs, if needed we can replace FTGL with something else very easily (all FTGL related stuffs are in the font module using a Font class as abstract layer).

I only tested texture fonts (there are several font types like bitmaps, pixmaps, polygons, buffered, ... fonts), but it already produces nice text :) (much better looking than before).
=>;-D Penguin Powered

User avatar
Balthazar
Moderator
Posts: 2055
Joined: Wed Nov 01, 2006 4:31 pm
Location: Russian Federation
Contact:

Post by Balthazar » Sun Jan 25, 2009 8:28 am

How FTGL font skin look like? Is it a picture or what?

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Sun Jan 25, 2009 9:58 am

Currently it uses a system font and it's not integrated in the skin (color, size, position, etc ...).

here are some screen shots:
Image
Image
Image
Image

as you can see several parameters like font spacing are not set properly.
=>;-D Penguin Powered

User avatar
Balthazar
Moderator
Posts: 2055
Joined: Wed Nov 01, 2006 4:31 pm
Location: Russian Federation
Contact:

Post by Balthazar » Sun Jan 25, 2009 11:56 am

But still it does look nice :)

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Sun Jan 25, 2009 4:41 pm

It's also because of the new font size policy:
Fonts are generated at a given size and are not resized at rendering time, they rendered with 1:1 scale preserving the visual aspect of the font :) (whereas previous system was resizing a single size font ... which was ugly)
=>;-D Penguin Powered

Post Reply

Who is online

Users browsing this forum: No registered users and 39 guests