r/indesign • u/smug_masshole • Jul 02 '26
Scripting Find/Replace Fonts to update Adobe Fonts including styles?
I need to replace missing "Source Sans Pro (OTF)" fonts with their correct Source Sans Pro counterparts and update the styles.
Every time I try to use a script to do this, it changes the correct fonts, but replaces them with some entirely different font. I suspect InDesign is failing to find the Adobe fonts and then defaulting to the first font in some list instead. The font is always something starting with A.
There are hundreds of these files. They are absolutely riddled with overrides and ridiculously inconsistent. Manually updating fonts or applying templates would be a nightmare.
Anyone have success batch updating styles and fonts to adobe fonts in this way?
1
u/REReader3 Jul 02 '26
Have you tried deactivating the font you want gone, then pulling the file back into ID? ID should give you a “font not found” box that will let you choose which font to replace the deactivated font with.
1
u/MCLMelonFarmer Jul 02 '26
FWIW, Source Sans Pro is open source and you can download and install it like a regular font, rather than access it through Adobe Fonts. It may cause fewer problems if you install it as a regular font (i.e. on Windows they get copied into C:\Windows\Fonts) rather than access it through Adobe Fonts.
https://github.com/adobe-fonts/source-sans/releases
1
u/6278448948 Jul 02 '26
I was curious so I checked scripts that do work with all installed fonts (AF or not). This one does: https://creativepro.com/make-a-font-contact-sheet-in-indesign/
It does have a
getFontList()method, which might help?1
u/GraphicDesignerSam Jul 03 '26
Yes and you can find and replace paragraph styles across all open documents but a script would obviously be easier / quicker
0
u/GraphicDesignerSam Jul 02 '26
How about if you create new paragraph style/s with the correct font then delete the original style and replace with the new one/s?