PDA

View Full Version : New ClanLib 0.9 Example...



rombust
11-14-2008, 01:13 PM
Welcoming a new ClanLib 0.9 example, with such an original title: "Font"

Attached is an example screen of how it runs on Windows.

Something i find strange, is why the Texture based font is slower than the Pixel Buffer based font ... something has gone wrong somewhere!

Currently, it does not work on Linux, well it does not work on my PC. This may be caused by my graphics driver? .. as other examples have stopped working.

rombust
11-20-2008, 12:25 PM
Something i find strange, is why the Texture based font is slower than the Pixel Buffer based font ... something has gone wrong somewhere!.

Fixed CL_Font_Bitmap. It now batch draws text.

The font example could be optimised further by creating a custom CL_Font class, that batch draws the whole text. But for the example, i do not think that is necessary.

Magnus Norddahl
11-21-2008, 03:38 AM
Nice work on optimizing the font rendering. :) And I'm sure that example should make it pretty clear for people how to use fonts with clanlib :)

rombust
11-26-2008, 02:49 PM
Now working nicely on Linux

See attached image :D

sphair
11-26-2008, 06:32 PM
Really good work, Rombust :)