How to change the name of a font ?

nlx's picture

Ok i have a nifty problem. I'm working in a long technical books with Indesign, and i'm running a script that change italics in the text to Charactere styles. The script only works if the italics are named as italics.

But Archer is using 'Book italic' as a name and not 'italic' so the script doesn't work… !

Is there anyway i can correct this in the font file, using a text editor, or is too complicated/impossible ?
I have no code abilities, btw.

nlx's picture

it's an OTF file…

paragraph's picture

Search and replace?

nlx's picture

searching into footnotes, i think its not possible…

johnych's picture

You should not correct this in the font file. It would be like distilling diesel fuel for your car with petrol (gasoline) engine. There must be another way.


Miguel Sousa's picture

To me it makes more sense changing the script to recognize "Book Italic" than changing the font. Besides, Archer's EULA might not even allow you to modify the font.

riccard0's picture

searching into footnotes, i think its not possible…

samarskaya's picture


Thanks for choosing Archer for your project. If you'd like to contact me directly, I'd be happy to see what I can do to help.


Ksenya Samarskaya
Font Development, Hoefler & Frere-Jones
samarskaya [at] typography [dot] com

David W. Goodrich's picture

This thread has some similarities to another over at the InDesign Scripting forum. Miguel Sousa already suggested that it would be wiser -- not to mention much simpler -- to modify a script than to change the names in a font family. The script discussed over on the ID forum is a standard *.JSX javascript, not compiled, so it can be modified. And the author, [Jongware], might well happen along here, to explain things better. Still, his contributions over there mention the strategy of temporarily changing the fonts in an InDesign document to a family using the the usual variants (regular, italic, bold, and bold italic) in order to run the JSX script that relies on them. After running the script, InDesign's "Find Font" command can quickly change all instances of, say, Times NR's "italic" to Archer's "book italic". As for footnotes, InDesign's can search them, but only if that is included in the search options: check out the options disguised as icons below "Search:" on the Find/Change menu.


Theunis de Jong's picture

Ah. The request did ring some bells :-)

Yes, David is correct on both accounts. Changing the font temporarily doesn't do no harm, and I forgot Find/Change in InDesign can be explicitly set to exclude footnotes ...

Theunis de Jong,
a.k. (elsewhere) a. [Jongware]

Theunis de Jong's picture

This morning it suddenly occured to me. It is no problem at all.

What NLX should do is first replace his "Book Italic" with a character style of choice and only then run the script to apply character styles to the rest of italics. The script is smart enough to leave existing character styles unchanged!

paragraph's picture

Why would one need a script at all?
Step one: define character style "italic" using font of your choice:

Step two: search for italic format:

Step three: replace in the whole document, including all footnotes:

But then, I could be missing something :)

Theunis de Jong's picture

"The script" has been mentioned a few times without any background story, so perhaps I should explain a bit further.

Preptext.jsx searches for any combination of bold, italic, superscript, subscript, underline, and small caps (and, by editing a few out-commented lines, strikeout). It creates character styles for each combo found and applies these to the text, so when editing you no longer can remove them by accident.

In this particular case, some work has to be done by hand (preserving a special version of italics) but, honestly, in most cases it works nigh on perfect ...

nlx's picture

Thanks for all, it helps a lot !

Syndicate content Syndicate content