Copy link to clipboard
Copied
How do I set (change) the default font + size in a script.
So... when I make a new textframe, the font + size will be standard the new one chosen.
Now standard is always: Minion Pro (12pt) , that is not what I want for my document.
For doing it via script for a document use the following
app.activeDocument.textDefaults.appliedFont = "Arial"
app.activeDocument.textDefaults.pointSize = 15
For the whole application do the following so that every document henceforth sees this change
app.textDefaults.appliedFont = "Arial"
app.textDefaults.pointSize = 15
https://www.indesignjs.de/extendscriptAPI/indesign-latest/index.html#TextDefault.html
-Manan
Copy link to clipboard
Copied
Set up a new Paragraph (and Character) Style for paragraphs for the open document and apply it.
If you want to set the default font, size and leading for all new documents, set them with no document open then close and relauch InDesign.
Copy link to clipboard
Copied
For doing it via script for a document use the following
app.activeDocument.textDefaults.appliedFont = "Arial"
app.activeDocument.textDefaults.pointSize = 15
For the whole application do the following so that every document henceforth sees this change
app.textDefaults.appliedFont = "Arial"
app.textDefaults.pointSize = 15
https://www.indesignjs.de/extendscriptAPI/indesign-latest/index.html#TextDefault.html
-Manan
Copy link to clipboard
Copied
Both method mentioned will only works if you use the "T" tool and type in the text.
It will not work if you use File> Place method, it's always Minion Pro (12pt) regardless if you set the default paragraph style or using script.
I think this a bug.
Copy link to clipboard
Copied
Manan, Derek thanks,
After lot of search to solve font problem by myself first (and come not out) ... now solution in "five minutes" .. thanks!
Copy link to clipboard
Copied
Double-click on the Basic Paragraph style to access the Paragraph Style Options dialog panel. I can then click on the Basic Character Formats, and change the default font from Mininon Pro to Myriad Pro and I could also make any other changes I like such as the size.29 May 2013
Copy link to clipboard
Copied
Hi @antegrity,
I would advice against using the Basic Paragraph Style or editing it. See the following discussion on this topic
-Manan