IM skews font in vector eps files
Posted: 2014-04-10T09:47:39-07:00
I'm using ImageMagic command line to convert images from eps into png. When a figure (eps vector created with some version of Illustrator) is passed through ImageMagick (either command line or opened in the IM viewer) it comes out with skewed font. Note - it's not italic, just skewed - actual italic font displays as "super-italic".
I also have equations created using MathType which do not have this problem.
Both types of images generally have Times New Roman as the font and no errors about missing fonts are displayed be IM. My first guess was a font issue - but TNR is the most generic font one can use.
I've done some searches and keep coming up with results explaining how to skew the entire image (as far as I can tell this is not happening) or different commands for getting text to appear (I don't want ANYTHING to change in the images).
The command I'm using to convert the images is: convert -density 150 imageName.eps -fill none imageName.png (although as I said, it displayed the skewed font in the viewer as well).
OS: Windows 7 Pro (64 bit)
ImageMagick 6.8.8 Q16 (64bit)
GhostScript 9.14 (for working with eps files)
***********************************************************
SOLVED: Font issue with GhostScript. Solution appears to be to add the system variable GS_FONTPATH=C:\Windows\Fonts and restart. Maybe also a couple other things...but I'm pretty sure that's what solved it.
I also have equations created using MathType which do not have this problem.
Both types of images generally have Times New Roman as the font and no errors about missing fonts are displayed be IM. My first guess was a font issue - but TNR is the most generic font one can use.
I've done some searches and keep coming up with results explaining how to skew the entire image (as far as I can tell this is not happening) or different commands for getting text to appear (I don't want ANYTHING to change in the images).
The command I'm using to convert the images is: convert -density 150 imageName.eps -fill none imageName.png (although as I said, it displayed the skewed font in the viewer as well).
OS: Windows 7 Pro (64 bit)
ImageMagick 6.8.8 Q16 (64bit)
GhostScript 9.14 (for working with eps files)
***********************************************************
SOLVED: Font issue with GhostScript. Solution appears to be to add the system variable GS_FONTPATH=C:\Windows\Fonts and restart. Maybe also a couple other things...but I'm pretty sure that's what solved it.