BookmarkSubscribeRSS Feed
michal_1407
Fluorite | Level 6

Hi,

 

I have problem with one warning: """WARNING: The font <sans-serif> is not available. Albany AMT will be used.""" on SAS server. I understand the problem but how to solve it without Admin rights. any hints?

 

IF I run the following code in EG8, there is no warning:

 

proc univariate data = sashelp.cars noprint;
histogram horsepower ;
title1 j=center height=15pt "title";
inset mean median n / position=nw cfill=ywh;
label horsepower= "sub_title";
run;

NOTE: PROCEDURE UNIVARIATE used (Total process time):
real time 0.13 seconds
cpu time 0.14 seconds

 

 

But when I try to export to PDF I get the following warning:

ods graphics on;

ods pdf FILE="/home/aaaa.pdf" style=HTMLBlue ;
ods select Histogram;

proc univariate data = sashelp.cars noprint;
histogram horsepower ;
title1 j=center height=15pt "title";
inset mean median n / position=nw cfill=ywh;
label horsepower= "sub_title";
 run;

WARNING: The font <sans-serif> is not available. Albany AMT will be used.
WARNING: The font <sans-serif> is not available. Albany AMT will be used.
NOTE: PROCEDURE UNIVARIATE used (Total process time):
real time 2.87 seconds
cpu time 0.18 seconds



 

 

 

 

3 REPLIES 3
yabwon
Onyx | Level 15

The font may be not registered. Probably running Proc Fontreg may help: https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n0gjtkngh991mgn1bmllxhm76bl2.htm

Though it requires admin... so...

 

Bart

_______________
Polish SAS Users Group: www.polsug.com and communities.sas.com/polsug

"SAS Packages: the way to share" at SGF2020 Proceedings (the latest version), GitHub Repository, and YouTube Video.
Hands-on-Workshop: "Share your code with SAS Packages"
"My First SAS Package: A How-To" at SGF2021 Proceedings

SAS Ballot Ideas: one: SPF in SAS, two, and three
SAS Documentation



michal_1407
Fluorite | Level 6

Maybe any hints How to change the default font? 

 

I tried with this option:

 

goptions ftext="Comic Sans MS";

 

But the same.

ballardw
Super User

One way would be to use a different ODS style. Like don't override the default that ODS PDF uses.

 

Goptions is for graphics options and mostly for the older device based graphics and would, if having any affect, likely only effect the output of procedures such as Gplot, Gchart, G3d, Gmap and/or Greplay.

 

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

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