Data visualization with SAS programming

Jagged fonts in ODS Graphics

Accepted Solution Solved
Reply
Contributor ckx
Contributor
Posts: 61
Accepted Solution

Jagged fonts in ODS Graphics

I've noticed that the letters in ODS Graphics output I've created have jagged outlines and the letter spacing is sometimes wrong, with letters placed to close together. I know how to deal with this in SAS/Graph but I can't seem to fix it in ODS Graphics (PROC SGPANEL to be specific). I've tried specifying a custom template where I've replaced the font by "Arial", as well as registeringTrueType fonts using PROC FONTREG. This had no impact. Any suggestions? I'm using SAS 9.4M4 with Enterprise Guide 7.1. SAS itself is on a server so I just ran PROC FONTREG in the program, the effect won't be permanent since I don't have admin rights.


Accepted Solutions
Solution
‎12-01-2017 05:05 AM
SAS Super FREQ
Posts: 1,265

Re: Jagged fonts in ODS Graphics

The EMF format does not do a good job with fonts.  For RTF, this is the default, and is actually the EMF Plus format, needed to support some features.  We have a problem report for this and hope to address this.  In the meantime, I suggest you can use OUTPUTFMT=PNG to get a higher quality graph output.  It will not be "scalable graphics" but you can set a higher dpi (300) to get good results.

View solution in original post


All Replies
Solution
‎12-01-2017 05:05 AM
SAS Super FREQ
Posts: 1,265

Re: Jagged fonts in ODS Graphics

The EMF format does not do a good job with fonts.  For RTF, this is the default, and is actually the EMF Plus format, needed to support some features.  We have a problem report for this and hope to address this.  In the meantime, I suggest you can use OUTPUTFMT=PNG to get a higher quality graph output.  It will not be "scalable graphics" but you can set a higher dpi (300) to get good results.

Contributor ckx
Contributor
Posts: 61

Re: Jagged fonts in ODS Graphics

Posted in reply to Sanjay_SAS

Thanks for the information Sanjay. Too bad EMF doesn't work as intended, I like the option of being able to enlarge/shrink my charts and still retain the highest quality. I'll switch to PNG, that will certainly be good enough

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 146 views
  • 0 likes
  • 2 in conversation