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 (March 2004, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 23 Mar 2004 16:48:48 -0500
Reply-To:     Quentin McMullen <quentin_mcmullen@BROWN.EDU>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Quentin McMullen <quentin_mcmullen@BROWN.EDU>
Subject:      ods rtf font size foolishness

Hi All,

Silly me, I thought the below code would create 3 rtf files, and that when I opened them in word, the font sizes would be 9, 10, and 11.

Unfortunately, instead I get font sizes of 9, 9.5, and 11.

I was hoping I could blame M$, but when I peaked at the RTF code in each of the three files, it is:

\pard\plain\intbl\sb0\sa0\ql\f2\fs18\cf1{hi mom \cell} \pard\plain\intbl\sb0\sa0\ql\f2\fs19\cf1{hi mom \cell} \pard\plain\intbl\sb0\sa0\ql\f2\fs22\cf1{hi mom \cell}

The font size specified in the rtf file is in half-points so, fs18 is correct for font size=9 point, but fs19 sure aint right for font size=10.

Is this a good ol' fashioned bug? I'm running in 8.2 on XP. Is this fixed in 9?

Test code below....

ods path work.rpttable(update) sasuser.templat(read) sashelp.tmplmst (read) ;

proc template; define style rpt9/store=work.rpttable; parent = styles.rtf; style batch from batch / font_size=9pt font_face=Arial ; end; define style rpt10/store=work.rpttable; parent = styles.rtf; style batch from batch / font_size=10pt font_face=Arial ; end; define style rpt11/store=work.rpttable; parent = styles.rtf; style batch from batch / font_size=11pt font_face=Arial ; end; run;

ods rtf file='c:\junk\me9.rtf' style=rpt9; data _null_; file print; put 'hi mom'; run; ods rtf close; ods rtf file='c:\junk\me10.rtf' style=rpt10; data _null_; file print; put 'hi mom'; run; ods rtf close; ods rtf file='c:\junk\me11.rtf' style=rpt11; data _null_; file print; put 'hi mom'; run; ods rtf close;

Kind Regards, --Quentin


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