BookmarkSubscribeRSS Feed
rschneider
Calcite | Level 5

I'm not sure if this is the correct board, but I'm using SAS Enterprise Guide 7.1 to create a PDF report. All of my proc report code works great, but when I use ODS PDF Text to add some additional notes in the document the font_weight and font_style do not work with the font 'Arial Unicode MS' (which is what my company requires). It seems other fonts, but I am wondering if there a reason or a work around for why bolding/italicizing is not working with the font that I need.

 

Some example code for one of the lines I am trying to include:

ods pdf text="~S={font_face='Arial Unicode MS' font_size=11pt font_weight=bold textalign=center color=black} 50% Initiatives Participation Required";

 

Thank you!

 

4 REPLIES 4
ballardw
Super User

Try

'Arial Unicode MS Regular'

 

Fonts get picky about names

rschneider
Calcite | Level 5

Thank you for the suggestions, but unfortunately, this did not work. The output font on the pdf defaults to AlbanyAMT.

Cynthia_sas
Diamond | Level 26
Hi, another thing to try is using the newer 9.2 syntax for style overrides
ods pdf text="~{style[fontweight=bold xxx=yyy]text string}";

and if that doesn't work, then try changing the USERTEXT style element in your style template.

cynthia
rschneider
Calcite | Level 5

These options don't seem to work either. It seems like maybe an issue with this particular font using ods PDF, but I'm not sure.

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand in the Innovate Hub.

Watch 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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 4 replies
  • 4933 views
  • 0 likes
  • 3 in conversation