<?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 labelattrs=GraphUnicodeText in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/labelattrs-GraphUnicodeText/m-p/57392#M1950</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using Arial (a fairly standard san-serif font) and you have "Arial Unicode MS" on your machine, you can use that font directly without a style reference. Doing that should give you the same font appearance in your graph. For example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods escapechar='~';&lt;/P&gt;&lt;P&gt;Title "Random Data from Two Study Groups";&lt;/P&gt;&lt;P&gt;proc sgplot data=random;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; xaxis type=log minor label="log~{unicode '2081'x}~{unicode '2080'x}x"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; labelattrs=(family="Arial Unicode MS");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; yaxis type=log minor label="log~{unicode '2081'x}~{unicode '2080'x}y"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; labelattrs=(family="Arial Unicode MS");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; scatter x=x y=y / group=g;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Nov 2011 18:02:55 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2011-11-30T18:02:55Z</dc:date>
    <item>
      <title>labelattrs=GraphUnicodeText</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/labelattrs-GraphUnicodeText/m-p/57391#M1949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to use unicode characters for some of the characters in my Axis label(s).&amp;nbsp; If I specify &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;labelattrs=GraphUnicodeText&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can use a sequence in my label similar to this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(*ESC*){unicode '2081'x}(*ESC*){unicode '2080'x}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to produce in this case a "little" 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However this rest of the text uses a font that does no match the rest of my graph.&amp;nbsp; I used the default font for everything else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can change the FAMILY on the style attr but then the UNICODE does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to have UNICODE and the FONT too?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 15:31:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/labelattrs-GraphUnicodeText/m-p/57391#M1949</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-11-30T15:31:49Z</dc:date>
    </item>
    <item>
      <title>labelattrs=GraphUnicodeText</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/labelattrs-GraphUnicodeText/m-p/57392#M1950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using Arial (a fairly standard san-serif font) and you have "Arial Unicode MS" on your machine, you can use that font directly without a style reference. Doing that should give you the same font appearance in your graph. For example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods escapechar='~';&lt;/P&gt;&lt;P&gt;Title "Random Data from Two Study Groups";&lt;/P&gt;&lt;P&gt;proc sgplot data=random;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; xaxis type=log minor label="log~{unicode '2081'x}~{unicode '2080'x}x"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; labelattrs=(family="Arial Unicode MS");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; yaxis type=log minor label="log~{unicode '2081'x}~{unicode '2080'x}y"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; labelattrs=(family="Arial Unicode MS");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; scatter x=x y=y / group=g;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 18:02:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/labelattrs-GraphUnicodeText/m-p/57392#M1950</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2011-11-30T18:02:55Z</dc:date>
    </item>
    <item>
      <title>labelattrs=GraphUnicodeText</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/labelattrs-GraphUnicodeText/m-p/57393#M1951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan thanks a bunch I would never have used that name.&amp;nbsp; It works but AFAIK I do not have font with that name on my PC.&amp;nbsp; I do have Arial.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other complicating factor is the program is run on UNIX and I look at the RTF with word.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me where in the documentation I can find this? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 18:57:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/labelattrs-GraphUnicodeText/m-p/57393#M1951</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-11-30T18:57:59Z</dc:date>
    </item>
    <item>
      <title>labelattrs=GraphUnicodeText</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/labelattrs-GraphUnicodeText/m-p/57394#M1952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DN: Is this what you are looking for? &lt;A href="http://support.sas.com/rnd/base/universalprint/printerfonts/alias.html"&gt;http://support.sas.com/rnd/base/universalprint/printerfonts/alias.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 19:01:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/labelattrs-GraphUnicodeText/m-p/57394#M1952</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-11-30T19:01:24Z</dc:date>
    </item>
    <item>
      <title>labelattrs=GraphUnicodeText</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/labelattrs-GraphUnicodeText/m-p/57395#M1953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; If you are running SAS 9.2, the graph output you generate is an image. Since you're generating the graphs on Unix, you will need to use a Unix font. We ship fonts with SAS that can handle these Unicode characters, and we reference the appropriate font for the requested ODS style throught the GraphUnicodeText element. However, when the page is viewed in Word, the fonts on the PC are used for the page rendering. This brings us back to your original question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using the RTF style in ODS, the "Times Roman" font in the style (and used on the PC) should be very close to the "Thorndale Duospace WT J" referenced by GraphUnicodeText. Do you find that it is not the case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 20:30:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/labelattrs-GraphUnicodeText/m-p/57395#M1953</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2011-11-30T20:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: labelattrs=GraphUnicodeText</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/labelattrs-GraphUnicodeText/m-p/57396#M1954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is what I ended up using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;labelattrs=GraphLabelText(family=GraphUnicodeText:FontFamily)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appears to keep the default font and allow reconize (*ESC*){unicode ...} syntax.&amp;nbsp; That's all really wanted.&lt;/P&gt;&lt;P&gt;I think this was in Warren's book or maybe on someones blog. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still don't understand the syntax and how it all works but I have lots of GTL to write so eventually I may get it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 19:30:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/labelattrs-GraphUnicodeText/m-p/57396#M1954</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-12-02T19:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: labelattrs=GraphUnicodeText</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/labelattrs-GraphUnicodeText/m-p/57397#M1955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Let me explain:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The GRAPHLABELTEXT you added to the LABELATTRS option is called an style "element" reference. This means that labelattrs picks up *all* of the style attributes in the GRAPHLABELTEXT element. When you add parenthesized attributes after this reference, you are overriding particular attributes from this element. In this case, you are overiding only the font family while leaving the other attributes intact. This is why your text is still at "label" size. Finally, the "GraphUnicodeText:FontFamily" is what we call a style "attribute" reference. You are referencing a particular attribute within a style element, in this case the font family from the GRAPHUNICODETEXT element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This sum total is that you get label-style text using a true Unicode font &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 21:09:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/labelattrs-GraphUnicodeText/m-p/57397#M1955</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2011-12-02T21:09:53Z</dc:date>
    </item>
  </channel>
</rss>

