BookmarkSubscribeRSS Feed
RichardDeVen
Barite | Level 11

Is it possible to use SAS/Graph line or stroke fonts in SGPLOT ? I ask because I eventually want to use a custom font created with PROC GFONT.

 

This sample suggests no 😞

 

ods html file='plot.html';

proc sgplot data=sashelp.class;
  title "Scatter!";
  scatter x=age y=weight;
run;

proc sgplot data=sashelp.class;
  title f=Swiss "Scatter!";
  scatter x=age y=weight;
run;

proc gplot data=sashelp.class;
  title f=Swiss "Scatter!";
  plot weight * age;
run;

ods html close;

RichardADeVenezia_0-1604801179154.png

 

There is no PROC SGGFONT.

Might there be some trick to coerce SG* into using the old fonts (or a GFONT created font) ?  

 

 

1 REPLY 1
ballardw
Super User

This is a guess in part as I haven't found anything in the documentation. I think that the Font needs to be registered with the operating system and not just in SAS as the device SAS Graph fonts are.

 

One reason I think so is that the ODS graphics will work completely without SAS Graph installation (now).

I do note that the SAS fonts like SWISS are not available from the Windows OS point of view, not in the font selectors font settings window by default.

 

If you can install the font to the OS level I bet it will work. Not interested enough to try to pull SWISS to the system though.

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 1 reply
  • 254 views
  • 0 likes
  • 2 in conversation