Gfx9000 Library

Pagina 8/9
1 | 2 | 3 | 4 | 5 | 6 | 7 | | 9

Van msd

Paragon (1372)

afbeelding van msd

26-11-2004, 00:22

Maybe adding some extra info in the source itself is sufficient. I've made some small updates so expect a new update soon

Van msd

Paragon (1372)

afbeelding van msd

24-10-2005, 09:22

Currently I started on some work on the library again. Some small bugfixes and I've added font data support from ram. So even characters can be printed when there is no free vram. No I've to add a putchar or equivilent function. I can do it in two ways. Make a putchar and use the putchar for the
print string function or make two seperate functions. The first one has a favor for size and the second one for speed (well not much overhead but still). Any toughts on this matter?

Van Sonic_aka_T

Enlighted (4130)

afbeelding van Sonic_aka_T

24-10-2005, 13:43

speed

Van msd

Paragon (1372)

afbeelding van msd

24-10-2005, 13:51

Sonic_aka_T: The overhead is one extra call and ret per character,however this will save about 50 bytes Tongue. Maybe I will go for sererate routines. They can use the same data structures, so only a little size overhead .

Van Sonic_aka_T

Enlighted (4130)

afbeelding van Sonic_aka_T

24-10-2005, 14:29

So why ask? Tongue

Van msd

Paragon (1372)

afbeelding van msd

24-10-2005, 14:34

Maybe someone has some usefull remarks Tongue.

Van Sonic_aka_T

Enlighted (4130)

afbeelding van Sonic_aka_T

24-10-2005, 14:57

You mean like "you suck!" or something? Tongue

Van Sonic_aka_T

Enlighted (4130)

afbeelding van Sonic_aka_T

24-10-2005, 15:25

Wait, I have something more useful...

1) Proportional fonts. Shouldn't be too hard, just a small table as a 'parameter' which contains the width of each individual character.
2) The ability to use two fonts, one fill, one outline, for which you can specify a color each. The print version would then first print the outline in the background color, then the fill in the foreground color. Pretty useful when you're not sure on what type of background you're printing...

Van msd

Paragon (1372)

afbeelding van msd

24-10-2005, 15:42

1) I've tought of propertianal fonts. And already have a flag for it. It already contains an offset table for each character ( you could also make a set with just a few chars). It's to slow to calculate the offset anyway and hard to make generic. The only thing I need to add for propertional is a table with character widths and some 1bit proportinal font data.
2) This can ofcourse already be done by printing a string twice Tongue. But maybe I can add something for it.
Any other ideas?

Van Sonic_aka_T

Enlighted (4130)

afbeelding van Sonic_aka_T

24-10-2005, 18:22

You don't calculate the offset you giant wank, just the width... You space 'em just the same way, in 16x16 or 8x8 blocks. Only, instead of being centered, all the chars are left-aligned. You even plot the characters as whole characters, the only thing different is that instead of increasing the new X position of the next character by the standard 16 or 8 pixels, you increase it by whatever width the width-table indicates... Now that, my friend, is how we do that... Wink

(we of course being excessively lazy ppl like myself Tongue)

Pagina 8/9
1 | 2 | 3 | 4 | 5 | 6 | 7 | | 9