BookmarkSubscribeRSS Feed
Ken_oy
Fluorite | Level 6
When I used SAS 9.1.3, I can use the CGM font "hwcgm001" in gplot.
but in SAS 9.2 I can't, no such font in SAS system. So what kind of CGM font we can use? I tried 'arial' but it is not good choice. Any help?
Thanks!

Ken
3 REPLIES 3
Andre
Obsidian | Level 7
Plenty of question are around your question.
- ods which on? or not

-options gstyle or nogstyle

-your code extract

Now about the use of cgm in 9.2
the first thing i would try is one of the new truetype font of SAS

What about your system option
as fontrendering=host_pixels ?

Are you aware of the existence of device zgif in a ods html context?

I watch the sas answer too after some precisions from your part

Andre Message was edited by: Andre
Ken_oy
Fluorite | Level 6
Andre,

a. no ods.
b. no gstyle
c. just to use gplot with 'cgm' driver for output. and then insert cgm files back to microsoft word.

I am not so sure I am right, but the problem fix.
All fonts work OK now. (note: works OK in word 2003 , but not very nice for 2007)

1. use goption ftext=hwcgm001;
2. use "font=none" in the whole gplot procedure;
3. use "cgm" driver for output, this will "print" an cgm format file to an existed driver address (for example, c:\)

Any suggestion? Thanks!

Ken
Cynthia_sas
SAS Super FREQ
Hi:
My recommendation would be to use ODS RTF, which, I believe creates an EMF or WMF format image that is embedded in the RTF file. Since both Word 2003 and Word 2007 can open and render RTF files, you might like the look better than using the CGM driver without GSTYLE. AND, if you did use GSTYLE, then your ARIAL font (or Albany AMT Freetype font -- installed with SAS 9.2) might look much nicer.

For example:
[pre]
goptions reset=all ftext="Albany AMT";
options gstyle nodate nonumber center;
ods listing close;

ods rtf file='c:\temp\open_with_Word.rtf';

proc gplot data=sashelp.shoes;
plot sales * inventory=region / name='reg';
where region in
('Canada', 'Asia', 'Pacific','Western Europe')
and sales lt 500000;
title f="Albany AMT" 'Selected Regions';
run;
quit;

ods _all_ close;
title;
[/pre]

If you do have SAS 9.2, there are lots of improvements to font rendering and style usage that make your output SO much nicer when you do use SAS/GRAPH. Once you get your RTF file opened in Microsoft Word, you should be able to right click on the image and do some minor formatting and resizing of the object in Word.

cynthia

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1131 views
  • 0 likes
  • 3 in conversation