Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > FusionPro® VDP Creator

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 6th, 2016, 09:11 AM
JPalchak JPalchak is offline
Junior Community Member
 
Join Date: Jan 2016
Posts: 10
Default Superscript text not high enough

I have a ® that I need to superscript which I have done successfully, however it seems to not be high enough for capitalized text.


Is this just how it is or is there any way I can make it higher? Manually placing an image isn't an option as this is generated text from a measure_rule; the placement of this will vary every time.
Reply With Quote
  #2  
Old April 6th, 2016, 10:55 AM
tou tou is offline
Regular Contributor
 
Join Date: Oct 2015
Posts: 107
Default Re: Superscript text not high enough

I don't know if it will work, but you can try a replacing the string with the following:

var a = Field("YOURFIELD")

a = a.replace("®","<superscript>®</superscript>")

** make sure you have "treat return string as tagged text"

It appears that font plays a role too...so maybe you can switch the font? Calibri has a very nice default height...
Attached Images
File Type: png TEST REGISTER TRADEMARK....png (40.0 KB, 4 views)

Last edited by tou; April 6th, 2016 at 11:06 AM..
Reply With Quote
  #3  
Old April 6th, 2016, 11:50 AM
dreimer dreimer is offline
Senior Contributor
 
Join Date: Oct 2010
Location: Shakopee, MN
Posts: 493
Default Re: Superscript text not high enough

Did you try adjusting it in the Global settings in the paragraph settings?
__________________
Don Reimer - JavaScript Novice

MAC OS 10.14.6 Acrobat DC FP Creator 12.0.1
Reply With Quote
  #4  
Old April 6th, 2016, 12:32 PM
tou tou is offline
Regular Contributor
 
Join Date: Oct 2015
Posts: 107
Default Re: Superscript text not high enough

wow...I didn't even see that! Nice!
Reply With Quote
  #5  
Old April 6th, 2016, 02:34 PM
step's Avatar
step step is offline
Senior Contributor
 
Join Date: Jan 2010
Location: Charlotte, NC
Posts: 955
Default Re: Superscript text not high enough

Note that as the name suggests: those changes will affect the superscript ratio of everything that's superscripted within your template as it is a global edit. You may be fine with this but it's also worth pointing out that you can also set the offset and ratio of the superscript tags within the paragraph tags themselves:
Code:
var str = '<p superoffset=90>ENERGY STAR<superscript>®</superscript>';
str += '<p superoffset=30>ENERGY STAR<superscript>®</superscript>';
return str;
__________________
Ste Pennell
FusionPro VDP Creator 9.3.15
Adobe Acrobat X 10.1.1
Mac OS X 10.12

LinkedIn
Reply With Quote
  #6  
Old April 6th, 2016, 02:50 PM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,591
Default Re: Superscript text not high enough

Quote:
Originally Posted by step View Post
Note that as the name suggests: those changes will affect the superscript ratio of everything that's superscripted within your template as it is a global edit. You may be fine with this but it's also worth pointing out that you can also set the offset and ratio of the superscript tags within the paragraph tags themselves:
Code:
var str = '<p superoffset=90>ENERGY STAR<superscript>®</superscript>';
str += '<p superoffset=30>ENERGY STAR<superscript>®</superscript>';
return str;
You may want to use the br=false attribute in those <p> tags so that you don't actually start a new paragraph on a new line:
Code:
var str = '<p br=false superoffset=90>ENERGY STAR<superscript>®</superscript>';
return str;
__________________
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral
LinkedIn

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)});
Reply With Quote
Reply

Tags
fusionpro, superscript

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 10:45 PM.


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