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.

Dark GDK / can darkgdk display .ttf fonts on screen ??

Author
Message
stevebrit
15
Years of Service
User Offline
Joined: 6th Jan 2009
Location: Florida USA
Posted: 20th Jan 2009 09:53
hi folks, i have tried the following piece of code :-

dbSetTextFont( "Arial.ttf" );
dbSetTextSize( 48 );
dbText(10,10,"Please wait loading image files");

it will not work for me i am assuming Darkgdk can display windows fonts, so what am i doing wrong here ?

Regards to all :- Steve
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 20th Jan 2009 10:03


stevebrit
15
Years of Service
User Offline
Joined: 6th Jan 2009
Location: Florida USA
Posted: 20th Jan 2009 10:31
hi thanks for your snippet there i removed the .ttf
and tried again. Still not happening. I have attached a bit of code
for some reason i get nothing on screen ??

Regards :- Steve and thank you

Attachments

Login to view attachments
stevebrit
15
Years of Service
User Offline
Joined: 6th Jan 2009
Location: Florida USA
Posted: 20th Jan 2009 12:03
Silly me i found y it was not doing anything. Simple really !!!
After i changed screen mode everything was black.
A simple clear screen to a color solved the problem.
I must stop staying up all hours cos my brain is frying LOL...
Regards Steve < off to bed now
stevebrit
15
Years of Service
User Offline
Joined: 6th Jan 2009
Location: Florida USA
Posted: 20th Jan 2009 21:50
Hello again. Still have problems i cannot seem to display any text on the screen. I do not have any run errors and the code after this snippent i have attached works ok.. Please what am i doing wrong here.

Regards to all :- Steve

Attachments

Login to view attachments
CheatCat
17
Years of Service
User Offline
Joined: 7th Mar 2007
Location: Sweden
Posted: 21st Jan 2009 11:56
Remove dbWait() and place a loop with dbSync() after dbText().

Login to post a reply

Server time is: 2024-09-30 15:17:16
Your offset time is: 2024-09-30 15:17:16