Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Anti-aliased fonts

Author
Message
Claws
19
Years of Service
User Offline
Joined: 5th Jun 2006
Location: Brazil
Posted: 1st Mar 2009 21:08
I noticed that any text displayed within DarkBASIC Pro applications is anti-aliased. How can i remove that? I don't want the in-game text to be anti-aliased.
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 1st Mar 2009 22:14
DBP text is not anti-aliased. What method are you using? TEXT? PRINT? Pasted to a sprite?

Claws
19
Years of Service
User Offline
Joined: 5th Jun 2006
Location: Brazil
Posted: 1st Mar 2009 22:29
Simple PRINT output:



The "Hello sir" text is displayed with aliased text. Soft edges.
Xlaydos
21
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 1st Mar 2009 22:59
Is your resolution set to match that of the monitor? Incorrect resolution could cause the text to look as if it is antialiased although it won't actually be.
Claws
19
Years of Service
User Offline
Joined: 5th Jun 2006
Location: Brazil
Posted: 1st Mar 2009 23:36
I can't make the application "force" the resolution?
tiffer
19
Years of Service
User Offline
Joined: 6th Apr 2006
Location: Scotland
Posted: 1st Mar 2009 23:55 Edited at: 1st Mar 2009 23:56
yes you can.....

i can't remember the correct syntax but check the help file for display commands.

A bit of coding will allow you to create a display menu within the program so that all users of your game can configure it theirselves.

Cwatson
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 2nd Mar 2009 08:24
You can return the desktop resolution with, I think the DESKTOP WIDTH() and DESKTOP HEIGHT(), so something like this at the start of your program should put it to the same as that:

SET DISPLAY MODE desktop width(),desktop height(),32

Haven't tested but it is something like that .


Health, Ammo, and bacon and eggs!
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 2nd Mar 2009 10:13
I think it's SCREEN WIDTH() and SCREEN HEIGHT(). But I'm not near a test machine either, so I can't be sure.

Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 2nd Mar 2009 11:17
Aha Mr.Vink - that would only give you the current running screen resolution instead of the desktop resolution, the DESKTOP WIDTH() etc commands are very new.


Health, Ammo, and bacon and eggs!
Diggsey
19
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 2nd Mar 2009 20:01
Or you could set your application to full-screen exclusive mode, which would mean that the screen would use YOUR display resolution, although that method has some downsides also.

[b]Yuor signutare was aresed by a deslyxic mud...
BOX2D V2 HAS HELP FILES! AND A WIKI!

Login to post a reply

Server time is: 2025-06-24 04:57:14
Your offset time is: 2025-06-24 04:57:14