Jump to content

Superscript text not high enough


Recommended Posts

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

 

http://i.imgur.com/tCtj5BN.png

 

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.

Link to comment
Share on other sites

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...

TESTREGISTERTRADEMARK....png.8b771a38a12b485088925a678155091a.png

Edited by tou
Link to comment
Share on other sites

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:

var str = '<p superoffset=90>ENERGY STAR<superscript>®</superscript>';
str += '<p superoffset=30>ENERGY STAR<superscript>®</superscript>';
return str;

Link to comment
Share on other sites

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:

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:

var str = '<p br=false superoffset=90>ENERGY STAR<superscript>®</superscript>';
return str;

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...