Skip to main content
Known Participant
October 15, 2021
Question

detect font substitution in svg

  • October 15, 2021
  • 2 replies
  • 2127 views

Hi,

Does anyone know if there is a way to detect if a font has been substituted when opening an svg in Illustrator? Ideally, I'd like to be able to detect it programmatically via jsx script but first I'm just looking to see if there is any visual indication that a font has been substituted.

This topic has been closed for replies.

2 replies

Brad @ Roaring Mouse
Community Expert
Community Expert
October 15, 2021

Interesting: As you said, there appears to be no mechanism in Illustrator to detect missing fonts in SVG files. I had the same results on a test file... it just substituted Arial without any notice in my case, with no mention in the Font list of my intended font. Don't know why that would be, because if you place such a file in InDesign, the missing fonts ARE indicated in the Find/Replace Font dialog, so why not Illustrator.

In the SVG code itself (open in a text editor), the required font is very plainly indicated, so it seems like an easy thing to do... maybe a script can dig into that??

 

Monika Gause
Community Expert
Community Expert
October 15, 2021

When you open a file, Illustrator will tell you that a font is missing.

Does that not happen with your SVGs?

lg84Author
Known Participant
October 15, 2021

No, the svg calls for Roboto (san-serif) and Illustrator is replacing with Roboto Slab Regular (serif). I don't see any warning of any kind.