Illustrator exports SVG with font set to ArialMT
When we export artwork from Illustrator with text formatted with the Arial font, the SVG code has the font set to ArialMT (the old Postscript name). This generally isn't a problem unless the image is displayed on a system that does not have the ArialMT font installed.
Short of changing the SVG code, is there anyway of preventing Illustrator from using the old Postscript name for the Arial font.
It seems to be same with artwork created on MacOS and Windows.
Inkscape does not have this problem.
-
Serena Saw commented
We need to use Export As and there is no option that gives us the Web font name. From fonts.adobe.com, the Web name needs to be museo-slab. None of the SVG export options will give me that name (with the hyphen).
-
Matt Knight commented
Something I just discovered, when you save an SVG using Export As… the font-family is set to:
font-family: ArialMT, Arial;
Which would solve this issue for us, except that we cannot use Export As… as the SVG is not then compatible with our content management system, which requires the !DOCTYPE declaration to be included.
Why does that not happen when using Save As…, surely that must be a fairly simple thing to implement?
-
Matt Knight commented
Thanks for your help anyway, Michael
-
Michael Vermeulen commented
@Matt, yes i am working on a windows system, it was working on my older version, but now i have the same error as you :-(
It's bad that Adobe overrules this, otherwise it was the best option.
-
Matt Knight commented
Thanks Michael, is that for Windows? I eventually found the file on my Mac here:
/Users/xxxxxxxx/Library/Preferences/Adobe Illustrator 27 Settings/en_GB/AdobeFnt_OSFonts.lst
I changed the ArialMT fonts to Arial. However, when I exported the SVG and checked the code the style elements were still referencing ArialMT.
I checked the AdobeFnt_OSFonts.lst file again and the changes I had made were reverted back, e.g. ArialMT
I am using Illustrator 27.8, so may be your workaround got broken in an earlier 27.x update?
Thanks
Matt
-
Michael Vermeulen commented
Hi Matt you can find the AdobeFnt_OSFonts.lst in:
/Users/xxxxxx/AppData/Roaming/Adobe/AIRobin 27.0.0 Settings/en_US/x64Br Michael
-
Matt Knight commented
Hi Michael
I'm still using version 27. Where is the AdobeFnt_OSFonts.lst found. I looked in:
/Users/xxxxxx/Library/Application Support/Adobe/Adobe Illustrator 27/en_GB
But could only see IllustratorFnt.lst
Thanks
Matt
-
Michael Vermeulen commented
This is a big issue for using Adobe creating SVG files
Did solve by changing AdobeFnt_OSFonts.lst (changed ArailMT to Arial)
That was working fine
But since version 28.0.0 it is overruled and return back to ArialMT
Change all the AdobeFnt_OSFonts.lst made it read only but sitll export is using ArialMT instead of Arial. -
Matt Knight commented
Disappointed to see that still has not be addressed