LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (February 2008, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 28 Feb 2008 08:11:59 -0800
Reply-To:     "Pardee, Roy" <pardee.r@GHC.ORG>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Pardee, Roy" <pardee.r@GHC.ORG>
Subject:      Re: sas/graph: using truetype fonts w/ODS RTF output on
              windows
Comments: To: msz03@albany.edu
In-Reply-To:  <2034.71.164.114.72.1204168169.squirrel@webmail.albany.edu>
Content-Type: text/plain; charset="us-ascii"

Hey Mike,

Thanks much for the response! I do like PNGs for a lot of things, but in this case I need something scalable--it's for a conference poster that I'm putting together in PowerPoint & will have to blow up crazy large.

Thanks!

-Roy

-----Original Message----- From: Mike Zdeb [mailto:msz03@albany.edu] Sent: Wednesday, February 27, 2008 7:09 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: [SAS-L] sas/graph: using truetype fonts w/ODS RTF output on windows

hi ... try DEV=PNG (looks pretty good) ... this works for me, while DEV=EMF gives me the same message you received ... you don't really need all the gsfname and filename stuff ...

* start; goptions reset=all device=png xpixels= htext=4 gunit=pct ftext="Tahoma";

ods results off; ods rtf file = "z:\deleteme.rtf" ;

proc boxplot data = phoney ; plot x * grp ; run ; quit;

ods rtf close ; ods results on; *end;

You could play around with pixels too ...

goptions reset=all device=png xpixels=800 ypixels=600 htext=4 gunit=pct ftext="Tahoma";

-- Mike Zdeb U@Albany School of Public Health One University Place Rensselaer, New York 12144-3456 P/518-402-6479 F/630-604-1475

> Hey Everybody, > > Running on windows, I'm trying to get an rtf file w/a boxplot in it > that uses a TrueType font. Is this possible? When I run this code: > > * ======================================== ; data phoney ; > do n = 1 to 2000 ; > x = ranuni(-1) ; > if n le 1000 then grp = "one" ; > else grp = "two" ; > output ; > end ; > run ; > > ods rtf file = "c:\temp\deleteme.rtf" ; > > filename emfgraph "c:\temp\deleteme.emf"; > > goptions > device = emf > gsfname = emfgraph > gsfmode = replace > ftext = 'Tahoma' > ; > > proc boxplot data = phoney ; > plot x * grp ; > run ; > > ods rtf close ; > * ======================================== ; > > I get a pretty graph in deleteme.emf that uses the Tahoma font, like I

> want. But the picture in deleteme.rtf looks like crap, and I have > this in my log: > > WARNING: Font Tahoma could not be used. > Font SIMULATE substituted for font Tahoma. > > What gives? I thought that graph output destined for the RTF > destination used the EMF device by default (at least on windows, which

> is where I'm running). I'm actually specifying that device and (I > think) not getting it. > > Can anybody throw me a clue? I'd like to not have to manually wrangle

> my graphs out of EMFs & into RTFs... > > Thanks! > > -Roy > > Roy Pardee > Research Analyst/Programmer > Group Health Center For Health Studies (Cancer Research Network) > (206) 287-2078 > Google Talk: rpardee > >


Back to: Top of message | Previous page | Main SAS-L page