SAS Studio

Write and run SAS programs in your web browser
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
epniv
Obsidian | Level 7
Does anyone know how to change the font size in the results tab, other than changing the HTML5 style under options? Many Thanks! epniv
1 ACCEPTED SOLUTION

Accepted Solutions
epniv
Obsidian | Level 7
Thanks alexal,
Yes, your solution is correct. I found that the following HTML5 formats give me the minor increase in font with too much more "style" added: Snow, Sapphire, Netdraw, MonochomePrinter & Journal 1a/2a/3a
My favorites are: HTMLEncore, Minimal & Daisy

Is this behavior because the fonts are embedded in the HTML5 styles? Thus the scaling of the fonts is not a simple matter...


View solution in original post

3 REPLIES 3
alexal
SAS Employee

@epniv,

 

There is no just a single option in SAS Studio that increases the font size in the Results viewer window, here are a couple of options for you...

SAS Studio uses the ODS HTML destination by default to display HTML output in the Results viewer window. It uses a default style we call HTMLBLUE. One option is to change the default style to something other than HTMLBLUE (ie, a style that produces larger text by default). To do this, in the upper right hand corner of SAS Studio (just to the right of the "Sign Out" button), click the down arrow in the "more application options" button and choose PREFERENCES and then RESULTS. Here, you can change the default style. For example, the DEFAULT style uses a larger font size than HTMLBLUE.

Another option is to use specific options in the code to increase the font size used in the Results viewer window. Here is an example of how to do this with PROC PRINT:

proc print data=sashelp.class 
style(data header n obs obsheader table)={fontsize=14pt}; 
run;
epniv
Obsidian | Level 7
Thanks alexal,
Yes, your solution is correct. I found that the following HTML5 formats give me the minor increase in font with too much more "style" added: Snow, Sapphire, Netdraw, MonochomePrinter & Journal 1a/2a/3a
My favorites are: HTMLEncore, Minimal & Daisy

Is this behavior because the fonts are embedded in the HTML5 styles? Thus the scaling of the fonts is not a simple matter...


ballardw
Super User

Styles in general contain a lot of information, font face, size and weight are just some of them.

You can use proc template to modify an existing (or for the truly optimistic create a style from scratch) to make a customized version.

 

This is an example of getting the listing of a style. Replace Meadow with the style of interest.

proc template;
   source styles.meadow;
run; 

By default the listing of the description will appear in the log.

 

You would use something similar to:

proc template;
   define style mymeadow;
      parent style.meadow;
      style BodyText from NormalText /
         fontsize = 19pt
         fontfamily = "<sans-serif>, <MTsans-serif>, sans-serif"
         color = black;
   end;
run;

to replace the fontsize of bodytext to size 19 from the default 9 (in the case of the meadow style as installed on my computer).

 

Find the blocks of text in your style with font sizes and copy them to code as above and then change as desired.

Your style may have the specific font inherited from another style which would appear in a Parent= statement in the generated source.

You may need to look in that style as well and copy the style block(s) of interest.

Or use style overrides in Proc Print, Report or Tabulate.

Changing a style will affect any output using that style and you could make it the default style for your system if desired.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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