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.

Code Snippets / simple font control

Author
Message
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 28th May 2003 12:19
this snippet wil look for the master and two substitute fonts as well as store each font name in an array if usage is required.

Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 28th May 2003 13:49
Cool, handy little snippet

Just a bit of advice, you can put 2 or more of those for...next loops together to make it faster. If you put all of them together everything is checked at once and you only have to run the loop once, and it gives real-time checking to see if the master fonts are available.
Also, instead of using make object etc to create the backdrop, just use backdrop on.

Cheers,
Kentaree

Whatever I did I didn't do it!
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 11th Jun 2003 07:41
hi mate heres an improvement again as its a series of functions now.



Andy Igoe
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 11th Jun 2003 17:37
Just lil' tip for DBPro usage (although i've not tried either in DBC) that saves a lil' typing and I think makes code easier to read.

instead of:

Quote: "dim SubACheck(1) : SubACheck(1) = 0
dim SubBCheck(1) : SubBCheck(1) = 0
"


Perhaps?:

Quote: "dim subACheck() ; SubACheck()=0"
or
Quote: "global subACheck as integer : subACheck=0"


Pneumatic Dryll
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 12th Jun 2003 04:35
Id be more inclined to use the last method, The first sounds like a dodgy array declaration.

Login to post a reply

Server time is: 2024-11-24 02:59:18
Your offset time is: 2024-11-24 02:59:18