Skip to main content
Participating Frequently
October 25, 2023
Question

SVG export

  • October 25, 2023
  • 2 replies
  • 341 views

Hi 

 

is it possible to change the font with Save or Save As to change the Font

Now the result is 

  • .st0{font-family:'ArialMT';}

A better solution is

  • .st0{font-family:'ArialMT',’Arial’;}

 

Then all ArialMT problems are solved.

 

br Michael

This topic has been closed for replies.

2 replies

m1b
Community Expert
Community Expert
October 25, 2023

It is possible with a script. The script would first export the svg then read it as a text file, do the desired edits, then save. Assuming that the desired edits were predictable enough to automate. Think of it as a find/change in the contents of the svg. 

Do you do any scripting?

- Mark

Participating Frequently
October 25, 2023

Hi Mark,

 

Yes i do a lot with scripting but it is not possible to run that script automatticly after a save

So now some collegues are forgotten that (also created an exe script to change ArialMT to Arial) that works if you run that script. So the best way is to solve this in Illustrator than it's always OK

m1b
Community Expert
Community Expert
October 25, 2023

You can script the svg export *and* the editing required in a single script—just run the script from Illustrator and you will end up with an svg file with your desired alterations. I don't have time to write the script right now, but if you've done any ExtendScript scripting, you can have a go.

- Mark

Monika Gause
Community Expert
Community Expert
October 25, 2023

You cannot edit SVG code in Illustrator like you can in Inkscape. You could make a feature request here: https://illustrator.uservoice.com