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
Content-Type: text/plain; charset="us-ascii"
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
From: Mike Zdeb [mailto:firstname.lastname@example.org]
Sent: Wednesday, February 27, 2008 7:09 PM
Subject: Re: [SAS-L] sas/graph: using truetype fonts w/ODS RTF output on
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 ...
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 ;
ods rtf close ;
ods results on;
You could play around with pixels too ...
goptions reset=all device=png xpixels=800 ypixels=600 htext=4 gunit=pct
U@Albany School of Public Health
One University Place
Rensselaer, New York 12144-3456
> 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";
> 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...
> Roy Pardee
> Research Analyst/Programmer
> Group Health Center For Health Studies (Cancer Research Network)
> (206) 287-2078
> Google Talk: rpardee