MarcomCentral (PTI) and FusionPro User Communities

MarcomCentral (PTI) and FusionPro User Communities (http://forums.pti.com/index.php)
-   Getting Started, Learning, Etc. (http://forums.pti.com/forumdisplay.php?f=38)
-   -   Superscript Register Symbol (http://forums.pti.com/showthread.php?t=4484)

hkenney February 16th, 2016 10:07 AM

Superscript Register Symbol
 
I have been trying to make the register symbol from my data file superscript. I realized after a while that the font I was using was the problem so I tried using ReplaceSubstring to change the font of only the symbol but it still does not seem to be working. I found someone with a similar issue and tried modifying the code that worked for them, my modified version is below.

Code:

FieldContent = Field("Title")
return ReplaceSubstring(TaggedTextFromRaw(FieldContent), "®",
    "<f name=\"Adobe Garamond Pro\"><superscript>&reg;</superscript></f>");


Dan Korn February 16th, 2016 10:32 AM

Re: Superscript Register Symbol
 
  1. Are you actually using the variable with the name of the rule in your text frame?
  2. Look at the log file to make sure you don't have any warning messages about fonts.
  3. Try adding some debugging code to the rule, like so:
    Code:

    Print("Title Field: " + Field("Title"));
    And look in the log file to see what it reports.

hkenney February 16th, 2016 12:27 PM

Re: Superscript Register Symbol
 
AH I feel silly. I forgot to replace the variable field with the rule. Thanks!


All times are GMT -7. The time now is 09:08 AM.

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