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

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

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