<?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: TextSymbol with embedded font not working in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/textsymbol-with-embedded-font-not-working/m-p/274416#M6448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Which versions of the Flex SDK and ArcGIS API for Flex are you using?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Mar 2011 16:17:12 GMT</pubDate>
    <dc:creator>DasaPaddock</dc:creator>
    <dc:date>2011-03-15T16:17:12Z</dc:date>
    <item>
      <title>TextSymbol with embedded font not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/textsymbol-with-embedded-font-not-working/m-p/274413#M6445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an embedded true type font that I have successfully displayed through a label on a widget within the viewer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;s:Label id="SymbolLabel" fontFamily="ERSIncidents" fontSize="45" text="A"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However when I try to use that same font in a TextSymbol it does not work. Just the plain letter A displays on the map instead of the font symbol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var pictureGraphic:Graphic = new Graphic();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var symbol:TextSymbol = new TextSymbol();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;symbol.text = "A";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var textFormat:TextFormat = new TextFormat();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;textFormat.font = "ERSIncidents";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;textFormat.size = 60;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;symbol.textFormat = textFormat;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pictureGraphic.geometry=this.convertLatLonToMapPoint(incident.lon, incident.lat);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pictureGraphic.symbol= symbol;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mapLayer.add(pictureGraphic);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas? Is there some difference in font versus fontFamily?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 02:46:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/textsymbol-with-embedded-font-not-working/m-p/274413#M6445</guid>
      <dc:creator>MikeMcDougall</dc:creator>
      <dc:date>2010-10-26T02:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: TextSymbol with embedded font not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/textsymbol-with-embedded-font-not-working/m-p/274414#M6446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I remember going through this before and what you have to did (if I recall correctly) is add the embeded font to the index.mxml.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 10:55:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/textsymbol-with-embedded-font-not-working/m-p/274414#M6446</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-10-26T10:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: TextSymbol with embedded font not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/textsymbol-with-embedded-font-not-working/m-p/274415#M6447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I have the same problem with a font that is not in the client side but embedded into a SWF.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The font is embedded like this in the SWF named&amp;nbsp; fonts_container.swf:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[Embed(source="/assets/esri_150.ttf", fontFamily="ESRI AMFM Electric", embedAsCFF="true")]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;private var ESRI_AMFM_Electric:Class;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public function fonts_container()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Font.registerFont(ESRI_AMFM_Electric);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and i call it in my application (application.swf) like this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@font-face {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; src:url("assets/fonts_container.swf");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; fontFamily: "ESRI AMFM Electric";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And this symbol is not displayed correctly :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;flash:TextFormat id="ftf" font="ESRI AMFM Electric"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;esri:symbol&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;esri:TextSymbol id="txt1" text="S" textFormat="{ftf}"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/esri:symbol&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I add the font in the client device and remove the @font-face, the symbol display correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is a problem because the font is not supposed to be installed on the client device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I forgetting some parameters to make the&amp;nbsp; symbol display correctly with embedded font ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 10:35:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/textsymbol-with-embedded-font-not-working/m-p/274415#M6447</guid>
      <dc:creator>Ganael_Jatteau</dc:creator>
      <dc:date>2011-03-15T10:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: TextSymbol with embedded font not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/textsymbol-with-embedded-font-not-working/m-p/274416#M6448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Which versions of the Flex SDK and ArcGIS API for Flex are you using?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 16:17:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/textsymbol-with-embedded-font-not-working/m-p/274416#M6448</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2011-03-15T16:17:12Z</dc:date>
    </item>
  </channel>
</rss>

