View Single Post
Old April 5th, 2016, 10:11 AM
traba5058 traba5058 is offline
Regular Contributor
Join Date: Jan 2012
Location: Atlanta, GA
Posts: 77
Unhappy Changing Fonts for Characters

I currently have 3 rules to change the numbers in the specific field to a different font. These rules work.

return Field("Address").replace(/(\d+)/g,'<f name="Gotham Medium">$1</f>');
return Rule("RuleFaxFormat").replace(/(\d+)/g,'<f name="Gotham Medium">$1</f>');
return Rule("RulePhoneFormat").replace(/(\d+)/g,'<f name="Gotham Medium">$1</f>');
I need assistance with the following:

1. Including change in font size & leading for the numbers: Font size with Gotham Medium should be 7pt with 8.4pt leading

2. Including ( ) and - characters in the phone & fax rules

If someone can use the phone or fax rule above to show me how to do this, I can then apply it to the others.

All help will be much appreciated.

Last edited by traba5058; April 6th, 2016 at 04:55 AM.. Reason: To clarify & simplify and hopefully get a response
Reply With Quote