<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to change font face in ODS RTF output via Unix batch mode in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-font-face-in-ODS-RTF-output-via-Unix-batch-mode/m-p/430606#M20241</link>
    <description>&lt;P&gt;I've been able to use&amp;nbsp;Base SAS&amp;nbsp;to produce a perfect ODS RTF file&amp;nbsp;for my needs. Now I want to do the same thing in batch mode in Unix.&amp;nbsp;Everything works fine except font -&amp;nbsp;in Base SAS, I had been using proc template to set font to Georgia globally:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods path(prepend) work.templat(update); *Added this in Unix batch mode code because of a separate issue;

proc template;
	define style styles.hello;
		class usertext / 
			font_size = 11pt
			font_face = Georgia;

		class body /
			topmargin = 1.0in
			leftmargin = 0.75in
			rightmargin = 0.75in;
	end;
run;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;When I try this in batch mode, I get this nice log note right after that step:&amp;nbsp;NOTE: STYLE 'Styles.hello' has been saved to: WORK.TEMPLAT&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;But at the very end of my log, after all of my ods rtf text= statements and my ods rtf close statement, I get multiple of these warnings:&lt;/P&gt;&lt;P&gt;WARNING: Font specification "Georgia" failed. Using default font family instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Margins and font_size are all fine in the output, it's just the font that did not work. I've tried changing the font through inline formatting for individual text= statements too, but it didn't work (though font_weight and foreground color worked that way). Thus my guess is that the proc template syntax is fine, but the font isn't registered or something like that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on how to solve this? I've googled it pretty thoroughly and haven't found anything. I need to use&amp;nbsp;Georgia because it's an official organization font.&lt;BR /&gt;&lt;BR /&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jan 2018 19:20:09 GMT</pubDate>
    <dc:creator>sm4</dc:creator>
    <dc:date>2018-01-24T19:20:09Z</dc:date>
    <item>
      <title>How to change font face in ODS RTF output via Unix batch mode</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-font-face-in-ODS-RTF-output-via-Unix-batch-mode/m-p/430606#M20241</link>
      <description>&lt;P&gt;I've been able to use&amp;nbsp;Base SAS&amp;nbsp;to produce a perfect ODS RTF file&amp;nbsp;for my needs. Now I want to do the same thing in batch mode in Unix.&amp;nbsp;Everything works fine except font -&amp;nbsp;in Base SAS, I had been using proc template to set font to Georgia globally:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods path(prepend) work.templat(update); *Added this in Unix batch mode code because of a separate issue;

proc template;
	define style styles.hello;
		class usertext / 
			font_size = 11pt
			font_face = Georgia;

		class body /
			topmargin = 1.0in
			leftmargin = 0.75in
			rightmargin = 0.75in;
	end;
run;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;When I try this in batch mode, I get this nice log note right after that step:&amp;nbsp;NOTE: STYLE 'Styles.hello' has been saved to: WORK.TEMPLAT&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;But at the very end of my log, after all of my ods rtf text= statements and my ods rtf close statement, I get multiple of these warnings:&lt;/P&gt;&lt;P&gt;WARNING: Font specification "Georgia" failed. Using default font family instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Margins and font_size are all fine in the output, it's just the font that did not work. I've tried changing the font through inline formatting for individual text= statements too, but it didn't work (though font_weight and foreground color worked that way). Thus my guess is that the proc template syntax is fine, but the font isn't registered or something like that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on how to solve this? I've googled it pretty thoroughly and haven't found anything. I need to use&amp;nbsp;Georgia because it's an official organization font.&lt;BR /&gt;&lt;BR /&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 19:20:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-font-face-in-ODS-RTF-output-via-Unix-batch-mode/m-p/430606#M20241</guid>
      <dc:creator>sm4</dc:creator>
      <dc:date>2018-01-24T19:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to change font face in ODS RTF output via Unix batch mode</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-font-face-in-ODS-RTF-output-via-Unix-batch-mode/m-p/430612#M20242</link>
      <description>&lt;P&gt;You need to install the font into your system, which I don't think is a SAS specific issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or maybe it's not in your library of SAS fonts, but for some reason I think it uses the system fonts.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 19:27:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-font-face-in-ODS-RTF-output-via-Unix-batch-mode/m-p/430612#M20242</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-24T19:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to change font face in ODS RTF output via Unix batch mode</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-font-face-in-ODS-RTF-output-via-Unix-batch-mode/m-p/430702#M20248</link>
      <description>Thanks for your response!&lt;BR /&gt;&lt;BR /&gt;I figured it was something like that.&lt;BR /&gt;So, specifically, I need to install the font in my Unix system? If you have a good link for that I would really appreciate it! I’ve googled a bunch and it’s not too clear (or I’m not knowledgeable).&lt;BR /&gt;&lt;BR /&gt;Thanks again!&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Jan 2018 22:10:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-font-face-in-ODS-RTF-output-via-Unix-batch-mode/m-p/430702#M20248</guid>
      <dc:creator>sm4</dc:creator>
      <dc:date>2018-01-24T22:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to change font face in ODS RTF output via Unix batch mode</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-font-face-in-ODS-RTF-output-via-Unix-batch-mode/m-p/430705#M20249</link>
      <description>You might try the FreeType fonts that are included with SAS starting in 9.2: Albany AMT, Cumberland AMT and Thorndale AMT. Albany is similar to Arial; Cumberland to Courier; and Thorndale to Times.&lt;BR /&gt;&lt;BR /&gt;Otherwise, you have to install the fonts on your system and then register them with SAS using FONTREG.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Wed, 24 Jan 2018 22:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-font-face-in-ODS-RTF-output-via-Unix-batch-mode/m-p/430705#M20249</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-01-24T22:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to change font face in ODS RTF output via Unix batch mode</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-font-face-in-ODS-RTF-output-via-Unix-batch-mode/m-p/430722#M20250</link>
      <description>&lt;P&gt;Thanks for your response! It worked!&lt;BR /&gt;&lt;BR /&gt;For others:&lt;BR /&gt;After some digging, I established that Georgia is in fact installed on my Unix system and located its path. I then&amp;nbsp;added to the top of my code a&amp;nbsp;&lt;EM&gt;proc fontreg mode=add&lt;/EM&gt;&amp;nbsp;with fontpath directing to that&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;directory. I got a really encouraging message:&lt;/P&gt;&lt;P&gt;SUMMARY:&lt;BR /&gt;Files processed: 82&lt;BR /&gt;Unusable files: 3&lt;BR /&gt;Files identified as fonts: 79&lt;BR /&gt;Fonts that were processed: 79&lt;BR /&gt;Fonts replaced in the SAS registry: 0&lt;BR /&gt;Fonts added to the SAS registry: 0&lt;BR /&gt;Fonts that could not be used: 79&lt;BR /&gt;Font Families removed from SAS registry: 0&lt;BR /&gt;&lt;BR /&gt;It did not give me the previous error relating to Georgia failing, instead it gave this:&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;"ERROR:&amp;nbsp; An exception has been encountered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please contact technical support and provide them with the following traceback&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;information:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The SAS task name is [SQL (2) ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Segmentation Violation"&lt;BR /&gt;Underneath was&amp;nbsp;a bunch of lines referencing the SAS 9.4 folder in the Unix system.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;I was about to post this new problem when I tried running the same code again - and the second time got no error message and the output is in Georgia! Let's hope it continues to do this on a monthly basis or I'll have to come back here lol.&lt;BR /&gt;&lt;BR /&gt;Thanks to both of you for the extremely relevant help!!!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 23:37:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-change-font-face-in-ODS-RTF-output-via-Unix-batch-mode/m-p/430722#M20250</guid>
      <dc:creator>sm4</dc:creator>
      <dc:date>2018-01-24T23:37:51Z</dc:date>
    </item>
  </channel>
</rss>

