Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library > Formatting Text


Thread Tools Search this Thread Display Modes
Old June 20th, 2019, 12:42 PM
scotts scotts is offline
Junior Community Member
Join Date: Feb 2011
Location: Zeeland, MI, USA
Posts: 42
Default Superscript and Stroke Issue

I have a customer that wants a black 4pt stroke on their white text for pricing on their products. I can get the stroke to work just fine through the 'Advance Text Options', or through the code <stroke>, but when I <superscript> the dollar sign and cents, the stroke becomes very thin. Is this just a limitation of FP, or is there another what of me doing this that I haven't thought of yet?

Any help would be appreciated.

iMac running 10.13.6 w/32G RAM, Acrobat X 10.1.10 (because I still like the interface, but also tried DC) and FusionPro 10.0.3 (because of integration with MDSF from EFI).

I am just testing "Option1" right now to get things correct. Once it is, I will make Option2 and Option3 match Option1.

switch (Field("Daily").toLowerCase())
    case "Option1".toLowerCase():
        return "<span>" + '<f name="Avenir Next Bold">' + '<z newsize="168.0">' + "<tracking newsize=-20>" + "<superscript>" + '<stroke color="Black" width="30000">' + "$" + "</stroke>" + "</superscript>" + "</tracking>" + '<stroke color="Black" width="300">' + "7" + "</stroke>" + "</f>" + "</span>";
    case "Option2".toLowerCase():
        return "<span>" + '<f name="Avenir Next Bold">' + '<z newsize="168.0">' + "<tracking newsize=-20>" + "<superscript>" + "$" + "</superscript>" + "</tracking>" + "7" + "</f>" + "</span>";
    case "Option3".toLowerCase():
        return "<span>" + '<f name="Avenir Next Bold">' + '<z newsize="168.0">' + "<tracking newsize=-20>" + "<superscript>" + "$" + "</superscript>" + "</tracking>" + "8" + "</f>" + "</span>";
        return "";
Attached Images
File Type: png Advanced_Text_Effects.png (29.7 KB, 3 views)
File Type: png Price_Outline_Issue.png (38.0 KB, 4 views)
Reply With Quote
Old June 21st, 2019, 10:11 AM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,592
Default Re: Superscript and Stroke Issue

There are a lot of factors that can go into this, including your Paragraph Global settings. So it's hard to diagnose this without the entire template.

That said, are you really trying to put down 168 point text with a four point stroke? I wouldn't expect to be able to see much of a stroke with a width that's just two percent of the text size.
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral

I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com.

Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs.

This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data.

Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages.

Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance.

Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support.

How To Ask Questions The Smart Way

The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript.

Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5.

return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)});

Last edited by Dan Korn; June 21st, 2019 at 10:13 AM..
Reply With Quote
Old June 21st, 2019, 11:53 AM
scotts scotts is offline
Junior Community Member
Join Date: Feb 2011
Location: Zeeland, MI, USA
Posts: 42
Default Re: Superscript and Stroke Issue

Dan, I'm just trying to match the design of what the customer has originally done. And when they did the stroke in Illustrator, it looks fine on both the '$' and the number. But when done in FP, the number looks good, but the $'s stroke looks almost non existent.

I have included the collection of the template, so you can see all aspects.
Attached Files
File Type: zip SnapSign.zip (4.37 MB, 2 views)
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 05:03 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.