Matt Centa Posted May 26, 2011 Share Posted May 26, 2011 I have an email address using a Eurostile font regular, but I need every thing after the @ to be in bold. I created a script that does this but it does not recognize the Eurostilebold font that is loaded and converts this to a default font. If there is a better way to right this script please let me know. I have tried removing all fonts from my library in Fusion pro folder and re loading them. return NormalizeEntities(Field("Email Address")).replace(/[a-z]{1,}\.[a-z]{1,5}$/g, "<fname='EurostileBold'>twgplus.com</f>"); I am using Fusion 7.1P1c Acrobat 9.4.1 Mac 10.5.8 Link to comment Share on other sites More sharing options...
esmith Posted May 26, 2011 Share Posted May 26, 2011 There should be a space between "f" and "name" in your tag and the font name should match the naming that FusionPro uses if you were to assign Eurostile Bold to random text in a FP text frame. While I have sometimes had problems with FusionPro recognizing a font, I have never had a a problem with the tag info as long as I could "see" the font in my font choices of a FP dialog box. Link to comment Share on other sites More sharing options...
Matt Centa Posted May 26, 2011 Author Share Posted May 26, 2011 I keep getting the message that it is not a loaded font. I can seen it in the drop down menu and it's in my Library Preferences Fusion Pro fonts folder. Link to comment Share on other sites More sharing options...
Dan Korn Posted May 27, 2011 Share Posted May 27, 2011 Try this: return NormalizeEntities(Field("Email Address")).replace(/@(.*)$/, "@<b>$1</b>"); The <b> tag should change the font to the bold style in the font family. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.