Hi,
I’m running following code on mainframe in a JCL and receive following warning.
goptions reset=all
noborder
dev=png
GSFMODE=REPLACE
gsfname=ud
xpixels=300
ypixels=40
AUTOSIZE=OFF
FTEXT=VERDANA;
data anno;
length style $ 8 text $ 31 html $ 200;
xsys="3"; ysys="3"; hsys="3"; x=5; y=50;
style="Verdana";
size=46;
text="Hello world";
position="0";
html='href="http://sas.com" target=_blank'; output;
run;
proc ganno anno=anno name='hello';
run;
************
WARNING: Font VERDANA could not be used.
Font SIMPLEX substituted for font VERDANA.
************
Does anyone know how can I make SAS to use Verdana font ? Is it possible on mainframe?
Thank you
Verdana is a Microsoft font, so it's probably not on your mainframe. You can check with your systems administrator to confirm.
OK, thanks.
I’ll check.
I get the same warning with almost any font therfore I thougth it could be an option somewhere which I have forgot.
SAS can use any TrueType font on MVS provided that the font file exists somewhere on the system. Once a copy of the font is available on MVS, simply register the font using the FONTREG procedure to begin using the font with SAS.
Base SAS(R) 9.2 Procedures Guide
According to Wikipedia, the Verdana font was available on Microsoft's website as freeware up until 2002 but newer versions of the font must be licensed now. Follow the link below for more information about the Verdana font.
Verdana - Wikipedia, the free encyclopedia
You might consider looking for a Verdana substitute from the long list of freeware fonts available from Google Fonts.
Thank you. I'll try.
Just a correction to my code above.
The style should be in quotation marks.
data anno;
....
style=" ’Verdana’";
....
run;
I have found which fonts are installed in our server by running following code:
proc registry list
startat="core\printing\freetype\fonts";
run;quit;
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.
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.