hkenney Posted February 16, 2016 Share Posted February 16, 2016 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. FieldContent = Field("Title") return ReplaceSubstring(TaggedTextFromRaw(FieldContent), "®", "<f name=\"Adobe Garamond Pro\"><superscript>®</superscript></f>"); Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted February 16, 2016 Share Posted February 16, 2016 Are you actually using the variable with the name of the rule in your text frame? Look at the log file to make sure you don't have any warning messages about fonts. Try adding some debugging code to the rule, like so:Print("Title Field: " + Field("Title"));And look in the log file to see what it reports. Quote Link to comment Share on other sites More sharing options...
hkenney Posted February 16, 2016 Author Share Posted February 16, 2016 AH I feel silly. I forgot to replace the variable field with the rule. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.