Jump to content

Adding text-shadow


bmo

Recommended Posts

Hello,

I'm new to FusionPro - is it possible to add a text-shadow effect in a manner similar to using JavaScript in the DOM? I've guessed the following code with no luck: 

var Var1 = 'First Name'
 
var val = TaggedRuleOrField(Var1);
 
val.style.textShadow = "2px 2px 4px #000000";

Can the string itself be changed (ex: lowercase/uppercase, concatenate, etc) but the look of the style of the string cannot with a function? Or perhaps (for lack of a better word), I'm misunderstanding the DOM, so a CSS style would not work? Or it needs to be done in another manner? 

Again, new to this, so any help would be greatly appreciated. Thanks!

Link to comment
Share on other sites

I see where you're going, but there's no text DOM or CSS.  FusionPro uses some markup tagging that's similar to HTML, and rules can be written in a custom JavaScript context, but it's not an HTML/CSS rendering system.

That said, you can definitely put a drop shadow on a text frame.  From the Text Frame Properties palette, you need to click on the Advanced Text Effects button.  It's on the bottom of the palette, next to the Overflow button.  Then in the Advanced Text Effects dialog, you can check Drop Shadow, and set all the various attributes.  You can also set up stroke or emboss if you want.

As for modifying the text content, that can be done in a myriad of ways, with rules.  That's what makes it a variable data composition system.  You can definitely change the case of the text, concatenate to it, change its font, style, color, etc.  Much of this can be done without any coding, with the Drag-and-Drop and Form rules; though you can do just about anything you can imagine with JavaScript rules.

You might want to spend a bit of time with the User Guide and the tutorials.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...