General CADD Pro Free Help Forum

Free Support for All Interested in General Cadd Pro

The New Generic CADD for Windows

 
Page 1 of 1 1
Topic Options
#6315 - 03/25/06 05:20 AM FONT-SELECT-PREVIEW
Vincent Offline
Member


Registered: 06/25/02
Posts: 505
Loc: Newcastle, Australia
This macro will give you a preview of the font selection. That's what FS should have built in.
Anyway try it out especially pre GCP4 users and let me know if there are any bugs.
I will upload it if there are no problems with it.

Vincent

[EDIT] Added TS,X toggle to negate exploded text.


;>>> FONT-SELECT-PREVIEW.GXM
;>>> A font select with a preview
;>>> Written by: Vincent Ferrara 2006
;*******************************************************
;>>> Description:
;>>> The macro starts with a preview of the current font.
;>>> It is set on a loop so that clicking on a font name will give a preview.
;>>> Pressing [RET] will accept the last font previewed.
;>>> Pressing [ESC] will cancel and return you to your current font.
;
/MSP,++,/XMD,++,MO;
HI,--;
/VLC,;
AL,??,/VIN,10,$VAL,AL,++;
TS,X,??,!,/VIN,12,$VAL,TS,X,--,!;
/VIN,0,1023;
YC,!,/VIN,1,$VAL;
FS,!,/VST,0,$STR;
/VST,1,$S(0);
NV,SCREENSHOT,!;
/SYS,C,V,/VST,10,$STR;
/STR,S,$S(10),1,1,/VIN,11,$STR;
/IF,$I(11)[GE]4,/GET,WarningLockLayerMakeCurrentAttempt,/VIN,4,$VAL;
/IF,$I(11)[GE]4,/SET,WarningLockLayerMakeCurrentAttempt,0;
;
.EMPTY-LAYER;
/CEL,Y,$I(0),!,/VIN,2,$VAL;
/IF,$I(2)[NE]0,/VIN,0,$I(0)-1,/GTO,EMPTY-LAYER;
YC,$I(0);
YC,!,/VIN,3,$VAL;
/IF,$I(3)[EQ]$I(1),/VIN,0,$I(0)-1,/GTO,EMPTY-LAYER;
YC,$I(0);
/IF,$I(11)[GE]4,/SET,WarningLockLayerMakeCurrentAttempt,$I(4);
YH,1024,!;
/STR,C,ABCDEFGHIJKLMNOPQRSTUVWXYZ,%%CR%%,abcdefghijklmnopqstuvwxyz,%%CR%%,1234567890,%%CR%%,`~!@#$%^&*()_+-={}[]:"/;'?/<>/,.|\,#;
TL,0,0,$STR,#;
ZA;
SE,T,!,!;
;
.NEWFONT;
/PMT,1,'Font Select Preview',#;
/PMT,2,'Displayed Font is [',$S(1),],#;
/PMT,3,'[ESC] to Cancel: [RET] to Accept:_',#;
/XMD,--;
FS,~;
/IF,$DERR[EQ]-1,/GTO,END;
/IF,$DERR[EQ]-2,FS,$S(0),/GTO,END;
/VST,1,$STR;
/XMD,++;
TG,L,!,TF,$S(1),!;
ZA;
/GTO,NEWFONT;
;
.END;
ER,Y,$I(0),!,!;
YD,1024,!;
YC,$I(1);
ZV,SCREENSHOT;
NX,SCREENSHOT,#;
HI,++;
/IF,$I(10)[EQ]0,AL,--;
/IF,$I(12)[EQ]1,TS,X,++,!;
/MSP,--,/XMD,--,PU;

Top
#6316 - 03/25/06 09:07 AM Re: FONT-SELECT-PREVIEW
Milan Offline
Member


Registered: 12/12/01
Posts: 2240
Loc: Brisbane, Queensland, Australi...
Vince,

Absolutely fantastic !
_________________________
Milan

Top
#6317 - 03/25/06 09:39 AM Re: FONT-SELECT-PREVIEW
GCP Support Administrator Online   content
Member


Registered: 12/17/01
Posts: 3345
Loc: Cherry Valley, N. Y.
Very nice! Good job!
Top
#6318 - 03/25/06 09:46 AM Re: FONT-SELECT-PREVIEW
CT Offline
Member


Registered: 01/26/02
Posts: 351
Loc: Columbus, OH
The only change I'm seeing from font to font is the bottom set of characters-none of the alpha or numeric characters are changing.

Edit
Under TS (Text Setting) eXplode=OFF & the macro works fine.

Nice macro Vincent!

Top
#6319 - 03/25/06 04:24 PM Re: FONT-SELECT-PREVIEW
Matt Administrator Offline
Member


Registered: 03/28/02
Posts: 3975
Loc: Spokane, WA
Beautiful macro Vincent! Throwing that on into the samples if you don't mind.

Great job!

Matt

Top
#6320 - 03/25/06 08:10 PM Re: FONT-SELECT-PREVIEW
Bruce L Offline
Member


Registered: 02/05/02
Posts: 822
Loc: Minneapolis, Minnesota
Vincent;

Very useful macro. Thanks.

Bruce

Top
#6321 - 03/25/06 08:46 PM Re: FONT-SELECT-PREVIEW
Sean Offline
Member


Registered: 01/06/02
Posts: 1049
Loc: Whistler, Canada
Many Thanks Vincent !

It will see a lot of use.

Sean

Top
#6322 - 03/25/06 10:07 PM Re: FONT-SELECT-PREVIEW
Bjorn Holmgren Moderator Offline
Member


Registered: 12/12/01
Posts: 2586
Loc: Sydney Australia
Vincent,

Good timing, I downloded Jims new fonts just before I came to your post. Gave an easy check on what those new fonts look like.

Bjorn

Top
#6323 - 03/26/06 01:55 AM Re: FONT-SELECT-PREVIEW
Vincent Offline
Member


Registered: 06/25/02
Posts: 505
Loc: Newcastle, Australia
Thanks guys. I really appreciate your feedback.

Carl,
The problem you struck got me really worried. I went over and over the macro to see what could cause it. I thought it could be something specific from your end maybe a hardware problem. I was relieved it was a simple text setting. Thanks for the heads up on that.

Matt,
Just uploaded the revised macro so please include that one in the samples.


Vincent

Top
Page 1 of 1 1


Moderator:  Bjorn Holmgren 
Hop to:
Search
Who's Online
0 registered and 5 anonymous users online.
Newest Members
Gen, vjs.314, jhindmand28, Kenneth Reece, heleana
1460 Registered Users
Forum Stats
1460 Members
24 Forums
3127 Topics
22833 Posts

Max Online: 46 @ 09/08/07 06:17 AM
July
Su M Tu W Th F Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31

Generated in 0.116 seconds in which 0.107 seconds were spent on a total of 14 queries. Zlib compression enabled in php.ini