Highlighted

Set default font + size for doc (script)

Explorer ,
Jun 08, 2020

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.

Adobe Community Professional
Correct answer by Manan Joshi | Adobe Community Professional

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

TOPICS
Scripting

Views

341

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Set default font + size for doc (script)

Explorer ,
Jun 08, 2020

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.

Adobe Community Professional
Correct answer by Manan Joshi | Adobe Community Professional

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

TOPICS
Scripting

Views

342

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 08, 2020 0
Adobe Community Professional ,
Jun 08, 2020

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 08, 2020 2
Adobe Community Professional ,
Jun 08, 2020

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 08, 2020 1
Participant ,
Jun 08, 2020

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.

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 08, 2020 0
Explorer ,
Jun 08, 2020

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!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 08, 2020 0