Antialiased Screen fonts (comming soon)!

For everything that's not in any way related to PureBasic. General chat etc...
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Antialiased Screen fonts (comming soon)!

Post by Num3 »

What i've done so far supports any type of font (it also has a color option), works great on small font sizes, but gets too pixelized on big fonts:

Image
Image
Image

I draw white text on a black background image, and do one pass for edge detect colored antialias (3 tones) and white font to color font pixel swapping...

--- EDIT ---

The offtopic (for now) seems to be a more appropriate place for this thread...

Found the problem with white... I was using rgb(255,255,255) for the example above but if i reduce it a bit say to rgb (240,240,240) it looks really cool :P

Look:

Image

I'll keep working on this, so i'll release it has a pbi file !
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Re: Antialiased Screen fonts (comming soon)!

Post by va!n »

hi Num3!
atm i dont really understand what you mean with the edge detect for 3 tones but i am very interested in seeing your pbi file ;)

some month ago, i worked on a routine for very smooth antialized fonts too and i managed to enable/disable it for nearly all kind of fonts! The only problem is, that it is a small hack until now by changing a value in the registry i found out... (tested and worked fine for win 2k/xp) ... but i didnt found any API call to change the value in the system, i am changing direct in the registry... (due fact i dont like my way, i havent publish it yet... maybe i will take a clother look to my routine and post my result soon...)

regards
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Also keen to see this! Nifty!
@}--`--,-- A rose by any other name ..
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Released!

Check the Tip's And Trick's section!
Post Reply