<?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 TextSymbol font in IE 8 is only Arial in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/textsymbol-font-in-ie-8-is-only-arial/m-p/331598#M30665</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to set a graphic textsymbol to a font other than Arial in Internet Explorer 8. I have seen the caveats about IE 7 only rendering Arial, but have seen nothing about IE 8. Below is a test page I have been using. It only renders Arial in IE 8. It works in FireFox 7.0.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I followed the advice here (&lt;/SPAN&gt;&lt;A href="http://stackoverflow.com/questions/6348959/how-to-disable-compatibility-view-in-ie" rel="nofollow noopener noreferrer" target="_blank"&gt;http://stackoverflow.com/questions/6348959/how-to-disable-compatibility-view-in-ie&lt;/A&gt;&lt;SPAN&gt;) about checking IE 8 compatability view, and the user agent has no mention of IE 7.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&amp;gt; 
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"/&amp;gt;
&amp;lt;meta http-equiv="X-UA-Compatible" content="IE=8" /&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;div id="map" style="height:400px;width:400px;"&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;script src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.4"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
dojo.addOnLoad(function() {
 dojo.require("esri.map");
 dojo.require("esri.layers.agstiled");
 dojo.require("esri.layers.graphics");
 dojo.addOnLoad(function() {
&amp;nbsp; var map = new esri.Map('map');
&amp;nbsp; dojo.connect(map, 'onLoad', function() {
&amp;nbsp;&amp;nbsp; var geometry = map.extent.getCenter(),
&amp;nbsp;&amp;nbsp;&amp;nbsp; fontFamily = 'Times New Roman',
&amp;nbsp;&amp;nbsp;&amp;nbsp; font = new esri.symbol.Font('12pt', esri.symbol.Font.STYLE_NORMAL, esri.symbol.Font.VARIANT_NORMAL, esri.symbol.Font.WEIGHT_NORMAL, fontFamily),
&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol = new esri.symbol.TextSymbol(fontFamily + ' font', font, new dojo.Color([0, 0, 0])),
&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic = new esri.Graphic(geometry, symbol);
&amp;nbsp;&amp;nbsp; map.graphics.add(graphic);
&amp;nbsp; });
&amp;nbsp; var layer = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/arcgis/rest/services/esri_streetmap_world_2d/mapserver");
&amp;nbsp; map.addLayer(layer);
 });
});
&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 15:41:59 GMT</pubDate>
    <dc:creator>TrentHardy</dc:creator>
    <dc:date>2021-12-11T15:41:59Z</dc:date>
    <item>
      <title>TextSymbol font in IE 8 is only Arial</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/textsymbol-font-in-ie-8-is-only-arial/m-p/331598#M30665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to set a graphic textsymbol to a font other than Arial in Internet Explorer 8. I have seen the caveats about IE 7 only rendering Arial, but have seen nothing about IE 8. Below is a test page I have been using. It only renders Arial in IE 8. It works in FireFox 7.0.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I followed the advice here (&lt;/SPAN&gt;&lt;A href="http://stackoverflow.com/questions/6348959/how-to-disable-compatibility-view-in-ie" rel="nofollow noopener noreferrer" target="_blank"&gt;http://stackoverflow.com/questions/6348959/how-to-disable-compatibility-view-in-ie&lt;/A&gt;&lt;SPAN&gt;) about checking IE 8 compatability view, and the user agent has no mention of IE 7.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&amp;gt; 
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"/&amp;gt;
&amp;lt;meta http-equiv="X-UA-Compatible" content="IE=8" /&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;div id="map" style="height:400px;width:400px;"&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;script src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.4"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
dojo.addOnLoad(function() {
 dojo.require("esri.map");
 dojo.require("esri.layers.agstiled");
 dojo.require("esri.layers.graphics");
 dojo.addOnLoad(function() {
&amp;nbsp; var map = new esri.Map('map');
&amp;nbsp; dojo.connect(map, 'onLoad', function() {
&amp;nbsp;&amp;nbsp; var geometry = map.extent.getCenter(),
&amp;nbsp;&amp;nbsp;&amp;nbsp; fontFamily = 'Times New Roman',
&amp;nbsp;&amp;nbsp;&amp;nbsp; font = new esri.symbol.Font('12pt', esri.symbol.Font.STYLE_NORMAL, esri.symbol.Font.VARIANT_NORMAL, esri.symbol.Font.WEIGHT_NORMAL, fontFamily),
&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol = new esri.symbol.TextSymbol(fontFamily + ' font', font, new dojo.Color([0, 0, 0])),
&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic = new esri.Graphic(geometry, symbol);
&amp;nbsp;&amp;nbsp; map.graphics.add(graphic);
&amp;nbsp; });
&amp;nbsp; var layer = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/arcgis/rest/services/esri_streetmap_world_2d/mapserver");
&amp;nbsp; map.addLayer(layer);
 });
});
&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:41:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/textsymbol-font-in-ie-8-is-only-arial/m-p/331598#M30665</guid>
      <dc:creator>TrentHardy</dc:creator>
      <dc:date>2021-12-11T15:41:59Z</dc:date>
    </item>
  </channel>
</rss>

