I'm working to create a script that makes a textbox based on user input. I need a way to make it so any time a number is used, it uses a different font.
Here's what I'm working with so far
var doc = app.activeDocument;
var pItems = doc.activeLayer.pageItems;
var text_frame_boxed = doc.activeLayer.textFrames.add();
text_frame_boxed.contents = text_box_text.text;
text_frame_boxed.textRange.characterAttributes.size = font_size_letters;
text_frame_boxed.textRange.characterAttributes.textFont = app.textFonts.getByName(font_for_letters);
I need to search the contents for any numbers, and replace their characterAttributes (both size and textFont).