The SAS Output Delivery System and reporting techniques

ODS PDF TEXT font_weight not working with Font_face = 'Arial Unicode MS'

Reply
Occasional Contributor
Posts: 11

ODS PDF TEXT font_weight not working with Font_face = 'Arial Unicode MS'

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!

 

Super User
Posts: 13,084

Re: ODS PDF TEXT font_weight not working with Font_face = 'Arial Unicode MS'

Posted in reply to rschneider

Try

'Arial Unicode MS Regular'

 

Fonts get picky about names

Occasional Contributor
Posts: 11

Re: ODS PDF TEXT font_weight not working with Font_face = 'Arial Unicode MS'

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

SAS Super FREQ
Posts: 9,261

Re: ODS PDF TEXT font_weight not working with Font_face = 'Arial Unicode MS'

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
Occasional Contributor
Posts: 11

Re: ODS PDF TEXT font_weight not working with Font_face = 'Arial Unicode MS'

Posted in reply to Cynthia_sas

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.

Ask a Question
Discussion stats
  • 4 replies
  • 213 views
  • 0 likes
  • 3 in conversation