FontFamily name not working on create new paragraph style
Hi everyone,
I'm trying to create a new paragraph style with the font family Avenir LT Std, but I think it does'nt work because of the spaces in the font family name, so I tried to do it in the same way with Harting font and it worked fine. Any idea about how scaping spaces and if it's suposed to be needed?
I tried also using app.fonts.item("Avenir LT Std") but it didn't work neither. If I make an alert with app.fonts.item("Avenir LT Std").fontFamily it shows correctly font name, but not working if I put that as the style fontFamily property.
This is the code I'm trying to use:
newStyle = doc.paragraphStyles.add({name:"header",
appliedFont : "Avenir LT Std",
fontStyle : "55 Roman",
pointSize : 16});
Thanks for your help.