<?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 Re: Label font with outline/stroke in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Label-font-with-outline-stroke/m-p/686710#M20510</link>
    <description>&lt;P&gt;You may want to investigate the CBOX option to set a standard color of the "box" that the text appears in to address the contrast between text and map area colors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There should be catalog, SASHELP.FONTS that contains the fonts SAS Graph uses. The fonts whose names end in E, for 'empty', are outline fonts. SWISSE might be likely candidate as it is similar to Helvetica . From the documentation:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-eDocBody"&gt;
&lt;DIV id="n0c8945h7o2kmrn1h0uehmio2i6j" class="xis-topic"&gt;
&lt;DIV id="n11eu5rmqix51rn10pr6ru9su82t" class="xis-topicContent"&gt;
&lt;DIV id="n182vk73j0q4h2n1jznammuzwhzo" class="xis-paragraph"&gt;All of the &lt;SPAN class="xis-nobr"&gt;SAS/GRAPH&lt;/SPAN&gt; fonts are stored in the &lt;A id="GTn0fl8vag0ws7ptn1qz032qy1nprl" class="glossTerm" target="_blank"&gt;&lt;/A&gt;catalog SASHELP.FONTS. For many fonts, the last letter or letters of the &lt;A id="GTn1kgkxnah2ii36n1d7vjxjejchsr" class="glossTerm" target="_blank"&gt;&lt;/A&gt;&lt;FONT style="background-color: #fcdec0;"&gt;font&lt;/FONT&gt; name indicates weight or spacing of the &lt;FONT style="background-color: #fcdec0;"&gt;font&lt;/FONT&gt;:
&lt;DIV class="xis-listTermDef"&gt;
&lt;DIV id="n0qled9k5rz65pn12zw9ft15sigt" class="xis-termDefPair"&gt;
&lt;DIV class="xis-term"&gt;B&lt;/DIV&gt;
&lt;DIV class="xis-definition"&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;bold (thicker)&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="n08qf86a1iaoqwn1huj8icaprn7d" class="xis-termDefPair"&gt;
&lt;DIV class="xis-term"&gt;E&lt;/DIV&gt;
&lt;DIV class="xis-definition"&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;empty (&lt;FONT style="background-color: #fcdec0;"&gt;outline&lt;/FONT&gt;) versions of their counterparts&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="p150st83lmqem8n1exreoxezc45k" class="xis-termDefPair"&gt;
&lt;DIV class="xis-term"&gt;I&lt;/DIV&gt;
&lt;DIV class="xis-definition"&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;italic (slanted)&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="n1ggwj5s5m80akn1i4loq5r9qwjt" class="xis-termDefPair"&gt;
&lt;DIV class="xis-term"&gt;L&lt;/DIV&gt;
&lt;DIV class="xis-definition"&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;light (thin)&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="n0qbqvpa4i5k34n12xbd3uk1g9nq" class="xis-termDefPair"&gt;
&lt;DIV class="xis-term"&gt;U&lt;/DIV&gt;
&lt;DIV class="xis-definition"&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;uniformly spaced versions of their counterparts; most of the &lt;SPAN class="xis-nobr"&gt;SAS/GRAPH&lt;/SPAN&gt; fonts that do not end in U are proportionately spaced. However, the kanji fonts are always uniform.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="n0shn1towckxnyn106jqdq8dy74n" class="xis-termDefPair"&gt;
&lt;DIV class="xis-term"&gt;X&lt;/DIV&gt;
&lt;DIV class="xis-definition"&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;expanded (wider characters and extra space between characters).&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="n0258d8qf16ua8n1vgxub354pavn" class="xis-caution"&gt;
&lt;DIV class="xis-cautionGenText"&gt;CAUTION:&lt;/DIV&gt;
&lt;DIV class="xis-cautionLeadin"&gt;Empty and uniform versions of fonts cannot be used if you have deleted their filled or proportionally spaced counterparts.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Style= option should set the font for the text of a Label function for the specific text. Use in your data set would be&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;style='Your font name goes here';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Sep 2020 14:43:09 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-09-25T14:43:09Z</dc:date>
    <item>
      <title>Label font with outline/stroke</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Label-font-with-outline-stroke/m-p/686642#M20509</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm creating a map with labels and I'm running into readability issues. The map has about nineteen automatically generated colours, so labels aren't always fully contrasting with the background. I figured that a way to solve for this problem is to use a white coloured font that is outlined with a black line.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to outline fonts in SAS without having to install a new font?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;My current map looks like this:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Example of similar map" style="width: 392px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49779i9E9C57B2FF28CF7A/image-dimensions/392x261?v=v2" width="392" height="261" role="button" title="fusion_56546_1_map" alt="Example of similar map" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Example of similar map&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;I would like the font to look like this:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Desired font style" style="width: 336px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49778iEA8AD3900105F5B9/image-dimensions/336x92?v=v2" width="336" height="92" role="button" title="Hussar-Bold-Outline" alt="Desired font style" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Desired font style&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code I use to define my labels:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data anno_labels;
	set a1;
	xsys='2';
	ysys='2';
	hsys='3';
	when='a';
	function='label';
	position='5';
	size=2.0;
	color='black';
	text=column1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 08:36:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Label-font-with-outline-stroke/m-p/686642#M20509</guid>
      <dc:creator>young_spruce</dc:creator>
      <dc:date>2020-09-25T08:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Label font with outline/stroke</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Label-font-with-outline-stroke/m-p/686710#M20510</link>
      <description>&lt;P&gt;You may want to investigate the CBOX option to set a standard color of the "box" that the text appears in to address the contrast between text and map area colors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There should be catalog, SASHELP.FONTS that contains the fonts SAS Graph uses. The fonts whose names end in E, for 'empty', are outline fonts. SWISSE might be likely candidate as it is similar to Helvetica . From the documentation:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-eDocBody"&gt;
&lt;DIV id="n0c8945h7o2kmrn1h0uehmio2i6j" class="xis-topic"&gt;
&lt;DIV id="n11eu5rmqix51rn10pr6ru9su82t" class="xis-topicContent"&gt;
&lt;DIV id="n182vk73j0q4h2n1jznammuzwhzo" class="xis-paragraph"&gt;All of the &lt;SPAN class="xis-nobr"&gt;SAS/GRAPH&lt;/SPAN&gt; fonts are stored in the &lt;A id="GTn0fl8vag0ws7ptn1qz032qy1nprl" class="glossTerm" target="_blank"&gt;&lt;/A&gt;catalog SASHELP.FONTS. For many fonts, the last letter or letters of the &lt;A id="GTn1kgkxnah2ii36n1d7vjxjejchsr" class="glossTerm" target="_blank"&gt;&lt;/A&gt;&lt;FONT style="background-color: #fcdec0;"&gt;font&lt;/FONT&gt; name indicates weight or spacing of the &lt;FONT style="background-color: #fcdec0;"&gt;font&lt;/FONT&gt;:
&lt;DIV class="xis-listTermDef"&gt;
&lt;DIV id="n0qled9k5rz65pn12zw9ft15sigt" class="xis-termDefPair"&gt;
&lt;DIV class="xis-term"&gt;B&lt;/DIV&gt;
&lt;DIV class="xis-definition"&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;bold (thicker)&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="n08qf86a1iaoqwn1huj8icaprn7d" class="xis-termDefPair"&gt;
&lt;DIV class="xis-term"&gt;E&lt;/DIV&gt;
&lt;DIV class="xis-definition"&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;empty (&lt;FONT style="background-color: #fcdec0;"&gt;outline&lt;/FONT&gt;) versions of their counterparts&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="p150st83lmqem8n1exreoxezc45k" class="xis-termDefPair"&gt;
&lt;DIV class="xis-term"&gt;I&lt;/DIV&gt;
&lt;DIV class="xis-definition"&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;italic (slanted)&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="n1ggwj5s5m80akn1i4loq5r9qwjt" class="xis-termDefPair"&gt;
&lt;DIV class="xis-term"&gt;L&lt;/DIV&gt;
&lt;DIV class="xis-definition"&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;light (thin)&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="n0qbqvpa4i5k34n12xbd3uk1g9nq" class="xis-termDefPair"&gt;
&lt;DIV class="xis-term"&gt;U&lt;/DIV&gt;
&lt;DIV class="xis-definition"&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;uniformly spaced versions of their counterparts; most of the &lt;SPAN class="xis-nobr"&gt;SAS/GRAPH&lt;/SPAN&gt; fonts that do not end in U are proportionately spaced. However, the kanji fonts are always uniform.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="n0shn1towckxnyn106jqdq8dy74n" class="xis-termDefPair"&gt;
&lt;DIV class="xis-term"&gt;X&lt;/DIV&gt;
&lt;DIV class="xis-definition"&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;expanded (wider characters and extra space between characters).&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="n0258d8qf16ua8n1vgxub354pavn" class="xis-caution"&gt;
&lt;DIV class="xis-cautionGenText"&gt;CAUTION:&lt;/DIV&gt;
&lt;DIV class="xis-cautionLeadin"&gt;Empty and uniform versions of fonts cannot be used if you have deleted their filled or proportionally spaced counterparts.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Style= option should set the font for the text of a Label function for the specific text. Use in your data set would be&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;style='Your font name goes here';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 14:43:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Label-font-with-outline-stroke/m-p/686710#M20510</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-09-25T14:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Label font with outline/stroke</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Label-font-with-outline-stroke/m-p/686719#M20511</link>
      <description>&lt;P&gt;What procedure are you using to draw the map? The SG procedures (which includes PROC SGMAP) support the BACKFILL, OUTLINE, and BACKLIGHT options. You can experiment with those options to create effects like you want. Here is &lt;A href="https://go.documentation.sas.com/?docsetId=grmapref&amp;amp;docsetTarget=p0oy720vq2vi9sn1uetprhj1pq50.htm&amp;amp;docsetVersion=9.4_01&amp;amp;locale=en#p1sya7em81rmynn18z5qnxgwte7v" target="_self"&gt;a link to the SGMAP doc&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 14:59:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Label-font-with-outline-stroke/m-p/686719#M20511</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-09-25T14:59:11Z</dc:date>
    </item>
  </channel>
</rss>

