jl_arnold Posted January 31, 2017 Share Posted January 31, 2017 I see in FusionPro under Global Setting for any text field are setting for Word Spacing. Here I can set Minimum, Optimum and Maximum percentages for all fields. I only want to change the word spacing for a single field. This field utilizes both tracking and word spacing increases. I know CopyFit rules can be set to individual fields with JavaScript. Is there a way I can set word spacing for just a single field? Thanks! Jason Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted January 31, 2017 Share Posted January 31, 2017 I see in FusionPro under Global Setting for any text field are setting for Word Spacing. Here I can set Minimum, Optimum and Maximum percentages for all fields. I only want to change the word spacing for a single field. This field utilizes both tracking and word spacing increases. I know CopyFit rules can be set to individual fields with JavaScript. Is there a way I can set word spacing for just a single field? What specific effect are you trying to achieve in the output? A picture may be worth a thousand words. Note that you can use entities such as or to denote a space in a specific width; please refer to the FusionPro Tags Reference for more information. Quote Link to comment Share on other sites More sharing options...
jl_arnold Posted February 1, 2017 Author Share Posted February 1, 2017 Dan! Thanks!! The tag reference guide is all I think I really needed. I couldn't find some of the tags in the building blocks so this guide really helped. So I was able to get this working without switching a regular non-breaking space for an em space. But if I want to do that, I can't remember is there is something built into FusionPro to do so. If not, I have a sample of the code below if you wouldn't mind checking it. It seems to work just fine, I'll just want to save it to my local computer for future reference if it's not built into FusionPro, since I know I have used similar text switching codes in the past. function replaceFunction(field) { field = field.replace(/ /g, " "); field = field.replace(/ /g, " "); return field; } return (replaceFunction(Field("INSERTFIELDNAME"); Thanks! Jason 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.