🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8266

Re: Formatting Fonts in TextFrames with JavaScript

#8266
From: nycynik
Date: Thu, 19 Oct 2006 18:40
20 lines
1283 bytes
yea, ok, i checked that reference.. here is what i find under paragrapstyles:

Method : add
Returns : ParagraphStyle
Description:
Create a new paragraph style.

That did not inform me how to create a style that has the Arial font. I did find more information in other references:

	myDocument.paragraphStyles.add({name:"testname", justification:Justification.centerAlign, pointSize:30, leading:16, overprint:true, color:"White"});

But I dont see anything about the font, and the reference says:

fontStyleString r/w The name of the applied font style.

so do i hae to make a fontstyle?

I would like to create a style with a font, a bold font, any ideas?

Thanks
Technical Details
Message-ID: <3bc155d2.7@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!news.ecp.fr!news.stben.net!webcrossing
References: <3bc155d2.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,17d528cc5b8e0e0c
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: nycynik@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: Formatting Fonts in TextFrames with JavaScript
Message-ID: <3bc155d2.7@webcrossing.la2eafNXanI>
Date: Thu, 19 Oct 2006 11:40:47 -0700
References: <3bc155d2.-1@webcrossing.la2eafNXanI>
Lines: 24
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!news.ecp.fr!news.stben.net!webcrossing