LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (September 2005, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 1 Sep 2005 11:10:51 -0400
Reply-To:     Mike Rhoads <RHOADSM1@WESTAT.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Mike Rhoads <RHOADSM1@WESTAT.COM>
Subject:      Re: RTF Font specification failed
Comments: To: Quentin McMullen <quentin_mcmullen@BROWN.EDU>
Content-Type: text/plain; charset="US-ASCII"

Quentin,

My guess is that Tech Support may be the best resource for this one. I can't "feel your pain" here, because I don't seem to have Times or Palatino installed.

Good luck!

Mike Rhoads Westat RhoadsM1@Westat.com

-----Original Message----- From: owner-sas-l@listserv.uga.edu [mailto:owner-sas-l@listserv.uga.edu] On Behalf Of Quentin McMullen Sent: Thursday, September 01, 2005 10:57 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: RTF Font specification failed

Hi All,

Well I've confused myself again. : )

It seems (now) that if in v9 I specify "Times New Roman" and "Palatino Linotype", I will get those fonts.

Put if I specify "Times" or "Palatino", they won't work (and SAS will roll-over to a default).

The difference between Times and Times New Roman is small, but the difference between Palatino and Palatino Linotype is larger.

As far as I can tell, these are both True Type fonts (?).

So I guess my questions are: 1. Is it not possible to get SAS to use the (plain old) Times and Palatino? 2. How can I figure out which font names SAS likes/dislikes?

Thanks again, --Quentin

On Thu, 1 Sep 2005 08:53:12 -0400, Quentin McMullen <quentin_mcmullen@BROWN.EDU> wrote:

>Many Thanks to Gerhard and Art, > >Changing it does seem to work, but I still find it a little odd. > >I have 2 fonts installed on my PC, one named Times, and the other named >Times New Roman. They look a little different to my eye (as displayed by M$ >Word, but I don't really care too much). > >In v8, the template code I posted below produced an RTF file with the >following font information in the header (which I like): >{\f1\froman\fprq2\fcharset0 Palatino;} >{\f2\froman\fprq2\fcharset0 Times;} > >In v9, the same code produced (don't like): >{\f1\froman\fprq2\fcharset0 Times New Roman;} >{\f2\froman\fprq2\fcharset0 SAS Monospace;} > > >When I switch the v9 template to specify "Times New Roman" rather than just >"Times", the rtf file it produces is: >{\f1\froman\fprq2\fcharset0 Palatino;} >{\f2\froman\fprq2\fcharset0 Times;} > >So I told SAS to use a font names Times New Roman, but SAS wrote an rtf file >specifying Times. > >When I open the rtf file in Word and select text, it shows the font as being >"Times" rather than "Times New Roman". > >Confusing (to me at least), but thanks for the tip. > >--Q. > >On Thu, 1 Sep 2005 04:07:40 -0400, Gerhard Hellriegel ><ghellrieg@T-ONLINE.DE> wrote: > >>I think you have to use "Times New Roman" instead of "Times". Maybe 8.x was >>more tolerant in that names, but I think "Times New Roman" was always the >>name of that font. >> >> >> >> >>On Wed, 31 Aug 2005 20:16:41 -0400, Quentin McMullen >><quentin_mcmullen@BROWN.EDU> wrote: >> >>>Hi All, >>> >>>Below is a bit of code that runs fine on my PC when I run it in v8, but in >>>9.1.3 when I run it I get: >>> >>>WARNING: Font specification "Times" failed. Using default font family >>>instead. >>> >>>The fact that it runs fine in v8 seems (to me at least) to confirm that my >>>PC does have a font names Times happily installed. >>> >>>Only thought is that v9 SAS somehow doesn't know the font is installed. It >>>was suggested to me that I look into PROC FONTREG, which apparently tells >>>SAS about the available fonts. >>> >>>But in the docs, I see no mention of PROC FONTREG with respect to simple ODS >>>RTF (but does mention ODS PDF, SAS/GRAPH, etc.). Before I charge into PROC >>>FONTREG (which I might be able to swing on my PC, but would me more work for >>>UNIX), thought I'd see if anyone had another thought as to what may be >>going on? >>> >>>**Code: >>>ods path work.templts(update) sashelp.tmplmst(read); >>> >>>proc template; >>> define style mystyle; >>> parent = styles.Printer; >>> replace fonts / >>> 'TitleFont2' = ("Palatino, Verdana, Times",11pt,Bold Italic) >>> 'TitleFont' = ("Palatino, Verdana, Times",11pt,Bold Italic) >>> 'StrongFont' = ("Palatino, Book Antiqua, Times",8pt,Bold) >>> 'EmphasisFont' = ("Palatino, Book Antiqua, Times",8pt,Bold >>>Italic) >>> 'FixedEmphasisFont' = ("Courier",8pt,Italic) >>> 'FixedStrongFont' = ("Courier",8pt,Bold) >>> 'FixedHeadingFont' = ("Courier",8pt,Bold) >>> 'BatchFixedFont' = ("SAS Monospace, Courier",6pt) >>> 'FixedFont' = ("Courier",8pt) >>> 'headingEmphasisFont' = ("Book Antiqua, Palatino, >>>Times",11pt,Bold >>>Italic) >>> 'headingFont' = ("Times",9pt, Bold) >>> 'docFont' = ("Palatino, Times",9pt, Bold) >>> ; >>> >>> style Table from Output / >>> rules = ALL >>> cellpadding = 2pt >>> cellspacing = 0.5pt >>> borderwidth = 1.5pt; >>> end; >>>run; >>> >>> >>>ods listing close; >>>ods rtf file="c:\junk\me.rtf" startpage=yes style=mystyle bodytitle; >>>proc freq data=sashelp.class; >>> tables sex; >>>run; >>>ods rtf close; >>>run; >>> >>>******Partial Log: >>> >>>30 ods listing close; >>>31 ods rtf file="c:\junk\me.rtf" startpage=yes style=mystyle >>>bodytitle; >>>NOTE: Writing RTF Body file: c:\junk\me.rtf >>>32 proc freq data=sashelp.class; >>>33 tables sex; >>> 2 The SAS System 17:16 >>>Wednesday, August 31, 2005 >>> >>>34 run; >>> >>>WARNING: Font specification "Times" failed. Using default font family >>>instead. >>> >>>Kind Regards, >>>--Quentin


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