Skip to main content
Known Participant
September 16, 2015
Answered

Default paragraph font not found in character catalog

  • September 16, 2015
  • 1 reply
  • 806 views

Hi all,

I'm wondering if there's a way to get the default paragraph font as a character format via ExtendScript. I currently have a script that records all the character formats in the active doc.

var arr = new Array;

var tag = active.FirstCharFmtInDoc;

var tagname = tag.Name;

var count = 0;

while (tag.ObjectValid()) {

     arr[count] = tagname;

     tag = tag.NextCharFmtInDoc;

     tagname = tag.Name;

     count++;

}

return arr;

In FrameMaker, this list looks like:

Default Font

Emphasis

EquationVariables

Hypertext

But when iterating through the character formats in the script, it omits the default font. Any ideas on how to stop this omission or why it occurs?

This topic has been closed for replies.
Correct answer Arnis Gubins

The "Default Font" tag is actually not in the stored Catalog of a document. It's just a hardwired reset that strips off all applied character formats and/or tags.

1 reply

Arnis Gubins
Arnis GubinsCorrect answer
Inspiring
September 18, 2015

The "Default Font" tag is actually not in the stored Catalog of a document. It's just a hardwired reset that strips off all applied character formats and/or tags.

Known Participant
September 18, 2015

I see, that makes sense. Thanks!