Jump to content
Welcome to the new FusionPro User Forum! ×

Help with small caps


Recommended Posts

I'm trying to make the code below to be small caps as well, but when I tried the below code, it won't capitalize "the" in The Legacy Group, I'm not sure why.


return '<smallcap>'+ReplaceSubstring(TaggedTextFromRaw(Field("ParHeader")), "The Legacy Group", '<color name="PANTONE 8641  C">The Legacy Group</color>')+'</smallcap>';      

Any ideas?

Link to comment
Share on other sites

Sorry, this is a known bug with small caps, case FP-10851.


The workaround is to turn smallcaps off and back on again after whatever intermediate tags you're placing, like so:

return '<smallcap>' + 
   ReplaceSubstring(TaggedTextFromRaw(Field("ParHeader")), "The Legacy Group",
   '</smallcap><color name="PANTONE 8641 C"><smallcap>The Legacy Group</color>')
   + '</smallcap>';

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.

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