f



how to add fonts to the sas registry (was RE: Re: sas/graph:

Success!  A google search led me to:

http://support.sas.com/documentation/onlinedoc/base/91/freetype-hub.pdf

Which includes the magic option on FONTREG to use the "all" mode.  (And
now that I look back on the FONTREG docs, I see it there was well :-P).
So here's code that works:

* =================================== ;

proc fontreg mode = all msglevel = verbose ;
 truetype 'c:\windows\fonts' ;
run ;

data phoney ;
  do n = 1 to 2000 ;
    x = ranuni(-1) ;
    if n le 1000 then grp = "one" ;
    else grp = "two" ;
    output ;
  end ;
run ;


  goptions
    device = EMF
    ftext = 'Tahoma'
  ;

ods rtf file = "c:\temp\deleteme.rtf" ;
  proc boxplot data = phoney ;
    plot x * grp ;
  run ;

ods rtf close ;

* =================================== ;

Looks like I've got to add that FONTREG call anew every time (running in
batch anyway).  But that's tolerable...

Thanks all!

-Roy

-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
Pardee, Roy
Sent: Thursday, February 28, 2008 8:12 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: sas/graph: using truetype fonts w/ODS RTF output on windows

Thanks for the response Mary!

Huh, strange.  So you run that code unaltered & get Tahoma in the
graphic in the .rtf file?

I just now tried adding this before the 'data phoney ;' line:

proc fontreg mode = replace ;
  truetype 'c:\windows\fonts' ;
run ;

And I get this in my log:

NOTE: This SAS session is using a registry in WORK.  All changes will be
lost at the end of this session.
SUMMARY:
  Files processed: 139
  Unusable files: 17
  Files identified as fonts: 122
  Fonts that were processed: 122
  Fonts replaced in the SAS registry: 2
  Fonts added to the SAS registry: 0
  Fonts that could not be used: 120

but it makes no difference--I still get the WARNING about font
replacement & the ugly font in the graphic.

If I run that code in an interactive session & check the registry as you
advise I see just a single font: SAS Monospace.

[Looks in sas help for the FONTREG procedure.]

If I throw a 'msglevel = verbose' on the call to fontreg, I get a ton of
these here:

WARNING: The font Tahoma (Style: Regular, Weight: Normal) cannot be
replaced since it does not already exist in the SAS Registry.

So... Can anybody tell me how to add fonts to this sas registry?

Thanks!

-Roy

________________________________

From: Mary [mailto:mlhoward@avalon.net]
Sent: Wednesday, February 27, 2008 3:32 PM
To: Pardee, Roy; SAS-L@LISTSERV.UGA.EDU
Subject: Re: sas/graph: using truetype fonts w/ODS RTF output on windows


Hi, Roy,

I am able to use Tahoma, but that may have something to do with adding
the font to the SAS registry.  To add a font, you use this procedure:

proc fontreg mode=replace;
truetype 'your-font-directory';

You may want to look in the SAS registry at the fonts-
Solutions- Accessories- Registry Editor- then navigate to Core-
Printing- Freetype- Fonts, and see what fonts are already there.

If you are in Windows XP, then the directory to put to run the fontreg
procedure should be c:\windows\fonts

-Mary




        ----- Original Message -----
        From: Pardee, Roy <mailto:pardee.r@GHC.ORG>
        To: SAS-L@LISTSERV.UGA.EDU
        Sent: Wednesday, February 27, 2008 4:52 PM
        Subject: sas/graph: using truetype fonts w/ODS RTF output on
windows

        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
0
pardee.r (1272)
2/28/2008 4:59:01 PM
comp.soft-sys.sas 142828 articles. 3 followers. Post Follow

0 Replies
1514 Views

Similar Articles

[PageSpeed] 7

Reply:

Similar Artilces:

Re: SAS maps / SAS Graphs
How do you define nice? Do you use Tufte's Data-ink ratio? On Thu, Mar 6, 2008 at 12:08 PM, Vincent Granville <vincentg@datashaping.com> wrote: > We are looking for nice SAS graphs to post in the image section on > AnalyticBridge. If you have produced such graphs, you are welcome to post > them (migh require a sign up, but it's free). You can also rate the graphs > posted by other participants. It's a good way to be noticed for the > quality of your work. See http://www.analyticbridge.com/photo/photo to > view the graphs currently posted (not all of them are produced with SAS). > ...

Re: SAS maps / SAS Graphs #3
Vincent, While it probably violates most of the requirements for "good" graphs, I've been quite impressed with how much information one can convey with a SAS prism map. For example, the map I used in a presentation last year: http://torsas.ca/downloads/Art.ppt#357,4,Slide 4 showed the number of vehicles in each of Canada's provinces and territories, representing number by height of the geographical area. Art ----------- On Thu, 6 Mar 2008 13:08:11 -0500, Vincent Granville <vincentg@DATASHAPING.COM> wrote: >We are looking for nice SAS graphs to post in the image section on >AnalyticBridge. If you have produced such graphs, you are welcome to post >them (migh require a sign up, but it's free). You can also rate the graphs >posted by other participants. It's a good way to be noticed for the >quality of your work. See http://www.analyticbridge.com/photo/photo to >view the graphs currently posted (not all of them are produced with SAS). ...

Re: SAS maps / SAS Graphs #2
I had to look that up, and found this: a.. If a picture is not worth a 1000 words, to hell with it (quote from = Ad Reinhardt -- note this is from the original Chinese quote that "a = picture is worth 10,000 words).=20 From: http://www.washington.edu/computing/training/560/zz-tufte.html -Mary (who actually right this instant is working on a trying to make a = "nice" diagram right now from a sketch done on the back of a file folder = with over 50 circles and connecting lines everywhere) ----- Original Message -----=20 From: data _null_,=20 To: SAS-L@LISTSERV.UGA.EDU=20 Sent: Thursday, March 06, 2008 12:15 PM Subject: Re: SAS maps / SAS Graphs How do you define nice? Do you use Tufte's Data-ink ratio? On Thu, Mar 6, 2008 at 12:08 PM, Vincent Granville <vincentg@datashaping.com> wrote: > We are looking for nice SAS graphs to post in the image section on > AnalyticBridge. If you have produced such graphs, you are welcome to = post > them (migh require a sign up, but it's free). You can also rate the = graphs > posted by other participants. It's a good way to be noticed for the > quality of your work. See http://www.analyticbridge.com/photo/photo = to > view the graphs currently posted (not all of them are produced with = SAS). > ...

Re: SAS/GRAPH device and SAS/intrnet
Josh, Not sure if you got a response for this yet or not. This is one of the topics I cover in my upcoming SAS Press book on the SAS/IntrNet Application Dispatcher. I have been on the road this week and so instead of quoting myself, I will provide the input suggested by a birdie who sent the following to me and asked me to post it: --------------------------------- This problem is generally caused by using an incorrect ODS statement. Check your code to make sure that your ODS statement corresponds to what is shown in http://support.sas.com/rnd/web/intrnet/dispatch/ods.html In your case, yo...

Re: What r the data types in SAS? in Base SAS , and SAS SQL
> From: Amar Mundankar > Sent: Tuesday, July 21, 2009 8:10 AM > To: sas-l@uga.edu > Subject: What r the data types in SAS? in Base SAS , and SAS SQL > > Hi all, > What are the different data types in Base SAS and SAS SQL?? character, lengths from 1 to 32,000+ numeric: lengths from 2 to 8 dates are a subtype of numeric and are identified by their date, datetime, or time formats the new proc TSPL (Table Server Processing Language) supports ANSI data types: bigint, tinyint, etc. http://support.sas.com/documentation/cdl/en/tsag/30878/HTML/default/a003 065339.htm http://s...

Re: For Beginners: Intro to SAS tutorial; how to add to SAS
On Tue, 8 Apr 2008 17:05:38 -0500, Mary <mlhoward@AVALON.NET> wrote: >Hi, > >I've revised the Intro to SAS document that I wrote back in 1990. Below is a copy. > >I know there is a lot of SAS stuff out on SAS Wikopedia. sasCommunity.org is not part of wikipedia, though it uses the same wiki engine. >Could someone tell me how to put this out there, or would you do so for me? I can send you the Word file if that would be better. > >-Mary > [snip plain text version of Mary's doc] > > There's more than one way to proceed. The text could be dropped directly into an article. However, I think it will need some markup work. Another possibility is to make a PDF from the Word file and have the wiki page point to it (either on sasCommunity.org or elsewhere). There are other variations on these two courses. Do you want to maintain control over the content, or leave it all in community hands? ...

Re: RE : Re: copulas and SAS
Adel, Think Joke! But, more seriously, it did prompt me to look up the origins of the copula as a functional. Joe On 9/27/06, adel F. <adel_tangi@yahoo.fr> wrote: > > Hi, > I do not know how this is related to my orginal question. > > My understanding of copula is, it is a joint distribution with uniform > margins, the problem how to obtain a copula which fits better a data? > > If there is any suggestion from members of SAS list, about examples for > copulae with SAS, I will appreciate that > > Thanks a lot > > Adel > Joe Whitehurst <joew...

Re: SAS Job websites WAS(Re: SAS jobs for freshers in US
On Fri, 24 Mar 2006 11:27:44 -0500, Steven Raimi <steven.raimi@ONSTAR.COM> wrote: >Another very helpful (and focused) web site for SAS jobs is >icrunchdata.com. I'll try to ....post from home later, where I have a set of links (I don't have them at my new job here, which, FYI, I found via Monster). I'll also try to avoid fumble-fingering that accidently posts my messages before I'm done writing them! Steve ...

Re: SAS Sample 1728 Was ---> Re: SAS Sample 1727
Nice thread guys .... I guess this is what open source development is all about .... Got me thinking about suggesting a code/macro library on sascommunity.org? Any thoughts? ...

Re: SAS Advanced Programming Exam for SAS 9: SAS Joke of the year.
I took the advanced exam this April because I wanted a relatively systematic way of assessing my knowledge of SAS in a short time span. For that purpose, it was worth it. Since I learn SAS by doing new tasks, or re-doing old tasks in a new way, I assume my knowledge of SAS is uneven, even though I am regarded as productive, and frequently creative in using SAS to solve our group's problems. I passed the test, with lower subscores on the components that I expected to be weakest on. I thought many of the questions made me think about some fundamental, sometimes subtle, features of the lan...

Re: Sparklines was Re: sas graph
think the STYLE is the better solution. The color - way does only work if you have the same background color. The style=0 should be independant. On Tue, 19 Feb 2008 16:29:49 -0500, Bross, Dean S <dean.bross@VA.GOV> wrote: > Another useful option rather than COLOR is > >STYLE=line-type >specifies a line type for the axis line. Valid values for line-type are >0 through 46. >If you specify STYLE=0, the axis line is not drawn. The default is 1, a >solid line. > >This is an option on the AXIS statement. > > >-----Original Message----- >From: owner-sas-l@listserv.uga.edu [mailto:owner-sas-l@listserv.uga.edu] >On Behalf Of Huang, Ya >Sent: Tuesday, February 19, 2008 4:20 PM >To: Nathaniel.Wooding@dom.com >Cc: SAS-L@listserv.uga.edu >Subject: RE: Sparklines was Re: sas graph > >The advantage of using color=white to make the axis 'disappear' is that >you still have the control to the scale of axis (order= option): > >goptions reset=all; >axis1 color=white order=(0 to 1000 by 200); >axis2 color=white; > >proc gplot data=sashelp.class; >plot weight*height / vaxis=axis1 haxis=axis2; >run; > >If you use noaxis option in plot statement, you can only get the >scale calculated by SAS. > > >-----Original Message----- >From: Nathaniel.Wooding@dom.com [mailto:Nathaniel.Wooding@dom.com] >Sent: Tuesday, February 19, 2008 1:15 PM >To: Huang, Ya >Cc: SAS-L@LISTSE...

Re: SAS Sample 1728 Was ---> Re: SAS Sample 1727 #3
First, let me admit/acknowledge that I have no knowledge of the history of this thread. Been tied up catching up post SAS Global Forum and post the announcement of sasCommunity.org. But I would like to offer some thoughts regarding Toby's comment: > No as for the sascommunity.org, do we really want a macro library. Well I > would say yes and no. I would like to have one and there are those who > have > paced some Macros on there already. I believe Don and Ron both have, > actually they were on there before the Wiki went public. However, since > people tend to get Ma...

Re: Sparklines was Re: sas graph
The advantage of using color=white to make the axis 'disappear' is that you still have the control to the scale of axis (order= option): goptions reset=all; axis1 color=white order=(0 to 1000 by 200); axis2 color=white; proc gplot data=sashelp.class; plot weight*height / vaxis=axis1 haxis=axis2; run; If you use noaxis option in plot statement, you can only get the scale calculated by SAS. -----Original Message----- From: Nathaniel.Wooding@dom.com [mailto:Nathaniel.Wooding@dom.com] Sent: Tuesday, February 19, 2008 1:15 PM To: Huang, Ya Cc: SAS-L@LISTSERV.UGA.EDU Subject: Sparklines was Re: sas graph I would recommend goptions reset=all; proc gplot data=sashelp.class; plot weight*height / noaxes; run; I am about to leave for the day and do not have time to search the web but as I recall, someone gave a paper on producing sparklines at NESUG last fall. Nat Wooding Environmental Specialist III Dominion, Environmental Biology 4111 Castlewood Rd Richmond, VA 23234 Phone:804-271-5313, Fax: 804-271-2977 Ya Huang <ya.huang@AMYLIN. COM> To Sent by: "SAS(r) SAS-L@LISTSERV.UGA.EDU Discussion" cc <SAS-L@LISTSERV.U GA.EDU> Subject Re: sas graph 02/19/2008 04:00 PM Please respond to Ya Huang <ya.huang@AMYLIN. ...

Re: SAS Sample 1728 Was ---> Re: SAS Sample 1727 #2
Graham , I am not sure that the SI Tech Support examples should have all the error checking that Chang wanted to throw in the macro. The examples should be clear concise and easy to read and get going, as well as be illistrative. Too much error checking in an example well is just over kill and even detrimental to an example. However, any code solution on the SI Tech Support web sit should follow basic rules of good practices and sound advice. Such as with thier macros having atleast a somewhat good Macro design. Look at Example SAS Sample 1728: The first method well lets say is soooo bad...

Re: SAS Advanced Programming Exam for SAS 9: SAS Joke of the year. #11
Kevin, Thank you for the nice words...I am sure I wouldn't have a chance on any stat exam, BTW. What I am good at is being in an absolute crisis and trying to get it solved with no time on the clock. That is why I think in a quirky manner. When the obvious isn't working, take a different path because there is simply no time left. It's what I did at MCI, SAS, and now as an independent. ....and that skill will not be measured on a certification exam or plopping me in front of a PC to hammer out an example SAS program. For any candidate, I can pick up their technical level with a few questions and watching their reactions. Alan Alan Churchill Savian www.savian.net -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Kevin Roland Viel Sent: Tuesday, September 04, 2007 4:02 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: SAS Advanced Programming Exam for SAS 9: SAS Joke of the year. On Tue, 4 Sep 2007, Alan Churchill wrote: > It seems that a test like this would toss me out of the pool from the > get-go. Heck, maybe that's what the goal would be ;-] Well then, maybe the rest of us might have a chance then :) Given that I have not used SAS regularly in months, I would be hurting. Hopefully, I would not be tossed immediately either. Isn't one point of the test to allow a organization to call itself a partner or some other distinction? Maybe to be listed among companies on SI's websites? Kevin Kevin ...

Re: SAS Advanced Programming Exam for SAS 9: SAS Joke of the year. #8
On Tue, 4 Sep 2007, Alan Churchill wrote: > It seems that a test like this would toss me out of the pool from the > get-go. Heck, maybe that's what the goal would be ;-] Well then, maybe the rest of us might have a chance then :) Given that I have not used SAS regularly in months, I would be hurting. Hopefully, I would not be tossed immediately either. Isn't one point of the test to allow a organization to call itself a partner or some other distinction? Maybe to be listed among companies on SI's websites? Kevin Kevin Viel, PhD Post-doctoral fellow Department of Geneti...

Re: SAS Advanced Programming Exam for SAS 9: SAS Joke of the year. #10
I actually think you are straight-jacketing the interview for a senior person. I would definitely look for someone who thought outside of the box. That may be ways of doing things other than macros or ODS or else putting a new spin on them. I ditched most of the macro language a decade ago, for example. As a hiring manager, I always went for creativity and not specific skills on hand and was very pleased with my hires. But hey, I don't hire anymore so it isn't something I have to face. BTW, no client has ever asked me for certification nor have I been quizzed on specific SAS knowledg...

Re: R vs. SAS (was Replacement for SAS (SPSS vs. SAS, redux)) #2
Sounds like R is the SAS equivalent of Linux .. who are incidentally in all sorts of a copy left/right mess at the moment. On Thu, 5 Feb 2004 09:39:37 -0500, Peter Flom <flom@NDRI.ORG> wrote: >I use both SAS and R; I"ve used SAS for 10 or 15 years, R for about 6 >months - 1 year. > >Each has strengths and weaknesses; I'd not like to give up either. > >Strengths of SAS (esp. compared to R) > >Tech support - I have SAS tech support's phone number and our license >number memorized. They're great. > >SAS-L - There's also an R-help list...

Re: R vs. SAS (was Replacement for SAS (SPSS vs. SAS, redux)) #3
Wow, that was a leap. Better not use Apache or PHP then. Andy >-----Original Message----- >From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On >Behalf Of ben.powell@CLA.CO.UK >Sent: Thursday, February 05, 2004 10:37 AM >To: SAS-L@LISTSERV.UGA.EDU >Subject: Re: R vs. SAS (was Replacement for SAS (SPSS vs. SAS, redux)) > >Sounds like R is the SAS equivalent of Linux .. who are >incidentally in all >sorts of a copy left/right mess at the moment. > >On Thu, 5 Feb 2004 09:39:37 -0500, Peter Flom <flom@NDRI.ORG> wrote: > >>I use both SAS a...

Re: R vs. SAS (was Replacement for SAS (SPSS vs. SAS, redux)) #5
I think that SAS and R are very similar, even though their designs are very different. What matters is that both can be used to accomplish the same things - just as English and Swahilli serve the same purpose (communication) equally well. As for the copyleft "mess", do you really believe the propaganda and outright lies perpetrated by some companies? Remember, they want you to pay $$$ for your software, and copyleft poses a huge threat to that goal. -----Original Message----- From: Peter Flom [mailto:flom@NDRI.ORG] Sent: Thursday, February 05, 2004 12:57 PM To: SAS-L@LISTSERV.UGA....

Re: SAS Advanced Programming Exam for SAS 9: SAS Joke of the year. #4
Ed , I still contend and stick with they should both be able to program and know how SAS works. I prefer the intervewing company give a test, were the person being interviewed is sat in front a laptop or desktop and told to write code to solve some problems. No online help no books just the persona nd the computer. This weeds out those who can code and those who cant, from those who can you then talk to them about the code they wrote and you can deduce those who understand how SAS works and thos who dont. The pool you are left with are the qualified candidates atleast from a SAS perspecti...

Re: SAS Advanced Programming Exam for SAS 9: SAS Joke of the year. #7
Well Toby, let me ask something then. Since I am not an ODS fan and haven't used proc report/tabulate for some time, would that be an automatic disqualifier since you don't allow reference books or materials? SAS does not provide tools that help me code ODS (except for EG) and therefore a reference material is all I would need. Now, it's not like I haven't used proc report (used it extensively at one time), it's just that I prefer other means to produce the final output. It seems that a test like this would toss me out of the pool from the get-go. Heck, maybe that's wh...

Re: R vs. SAS (was Replacement for SAS (SPSS vs. SAS, redux)) #4
No, sorry if I made it sound that way..... SAS and R are totally different in the way they work, how they are structured, what the statements look like, and so on. Not like French and Spanish, not even like English and Spanish. More like English and Swahilli. R has a lot in common with S Plus, both are based on the S language. But there is no hostility that I know of between S Plus and R (unlike the situation with Linux) Peter >>> <ben.powell@CLA.CO.UK> 2/5/2004 10:36:32 AM >>> wrote Sounds like R is the SAS equivalent of Linux .. who are incidentally in all sort...

Re: To SAS or not To SAS (or whatever else)!!,
OK, I'll be the first to bite here. First, check out our most excellent archives. There have been many, many discussions on the merits of sas versus anything from spss to sql server analytics to oracle to you name it. You might need to get creative in your search, like sas AND advantage or sas AND oracle and (obviously) sas AND spss. I've used a good many of the analytical tools out there, including many years with both sas and spss, and I can tell you from first hand knowledge, nothing even comes close to sas with regard to flexibility of the tool. You can do pretty much anything ...

Web resources about - how to add fonts to the sas registry (was RE: Re: sas/graph: - comp.soft-sys.sas

Regional Internet registry - Wikipedia, the free encyclopedia
(NRO) is an unincorporated organization uniting the five RIRs. It came into existence on October 24, 2003, when the four existing RIRs entered ...

Wireless Registry (@WirelessRgstry) on Twitter
Sign in Sign up To bring you Twitter, we and our partners use cookies on our and other websites. Cookies help personalize Twitter content, tailor ...

BabyList Baby Registry on the App Store on iTunes
Get BabyList Baby Registry on the App Store. See screenshots and ratings, and read customer reviews.

Baby registry - Flickr - Photo Sharing!
Cheri gets used to the barcode gun. We've never done a registry before, but creating one for new babies is apparently a requirement.

Cancer sufferer Toula Spears faces fight about headscarf at motor registry
Mother of four battling cancer didn't expect to face a fight because of her headscarf when she fronted up to a motor registry to renew her driver's ...

Zach Anderson, on child sex offender registry for underage hook up - The Courier-Mail Search Search
LIKE any red-blooded teenage boy, when Zach Anderson arranged to see a girl he met on a online dating app, he thought he was getting lucky. But ...

More Victorians ditching the church and opting for registry wedding
HERE comes the no-fuss bride: more Victorian couples are ditching the church and opting for cheaper and easier registry weddings.

Quebec Long-Gun Registry Facing Caucus Rifts, New Push From Gun Lobby 72
After unanimity among Quebec lawmakers on the proposal, some politicians are starting to have cold feet.

Quebec’s proposed long gun registry facing fight from gun lobby
Grassroots opposition want the government to abandon the initiative MONTREAL – Quebec’s bid to create a provincial long-gun registry – seemingly ...

Delete locked Registry keys with Registry DeleteEx
Deleting Registry keys is an important part of removing malware or other stubborn applications, but it’s not always easy. If the key is locked ...

Resources last updated: 3/17/2016 11:10:41 AM