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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1579 views
  • 0 likes
  • 2 in conversation