Article View: adobe.scripting.indesign
Article #8302replace missing fonts
From: bobac
Date: Tue, 24 Oct 2006 08:05
Date: Tue, 24 Oct 2006 08:05
12 lines
1193 bytes
1193 bytes
Could you please help me with this one?
I have .inx file with missing fonts (FontStatus.notAvailable).
How can I replace them with default font for example ๏ฟฝArial๏ฟฝ.
I tried to do it in this manner:
app.findPreferences = app.changePreferences = null;
app.changePreferences.appliedFont = app.fonts.item("Arial");
for (j=0; j < myDocument.fonts.length ; j++) { if (myDocument.fonts[j].status == FontStatus.notAvailable) { app.findPreferences.appliedFont = myDocument.fonts[j]; //<--- "The requested font family is not available." myDocument.search(); } }
but got an exception "The requested font family is not available."
Technical Details
Message-ID:
<3bc20f96.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!news2.volia.net!news.germany.com!news.isoc.lu!news.stben.net!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,4f6931a7ba7f9b09,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII From: bobac@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: replace missing fonts Message-ID: <3bc20f96.-1@webcrossing.la2eafNXanI> Date: Tue, 24 Oct 2006 01:05:51 -0700 Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!news2.volia.net!news.germany.com!news.isoc.lu!news.stben.net!webcrossing