Jump to content

Help with small caps


CCS_Printing

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...