BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,

I'm currently working on a .pdf report and would like to use the font Verdana in it. I have modified my template:
proc template;
define style mystyle;
parent=styles.printer;
style usertext from usertext /
foreground=Blue;
replace fonts /
'TitleFont2' = ("Verdana",4,Bold Italic)
'TitleFont' = ("Verdana",5,Bold Italic)
'StrongFont' = ("Verdana",4,Bold)
'EmphasisFont' = ("Verdana",3,Italic)
'FixedEmphasisFont' = ("Verdana",2,Italic)
'FixedStrongFont' = ("Verdana",2,Bold)
'FixedHeadingFont' = ("Verdana",2)
'BatchFixedFont' = ("Verdana",2)
'FixedFont' = ("Verdana",2)
'headingEmphasisFont' = ("Verdana",4,Bold Italic)
'headingFont' = ("Verdana",4,Bold)
'docFont' = ("Verdana",3);
end;
run;

But get the message: "WARNING: Font specification "Verdana" failed. Using default font family instead." and that's not pretty...! What to do?

:-) Jenny

PS.: I'm running SAS v913 on pc, servicepack 4.
2 REPLIES 2
Chevell_sas
SAS Employee
You can use PROC FONTREG to register TrueType fonts with the SAS Registry. Using this procedure and pointing to the location that your fonts are located, you should be able to use any of the TruType fonts. Below is an example which can be used on Windows.

proc fontreg;
fontpath "%sysget(systemroot)\fonts";
run;
deleted_user
Not applicable
Excellent! That did the trick

Thanks a lot
:-D
Jenny

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 2 replies
  • 2386 views
  • 0 likes
  • 2 in conversation