<?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 Font Scaling Issues in 4.X in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/font-scaling-issues-in-4-x/m-p/1364850#M83221</link>
    <description>&lt;P&gt;When switching from ArcGIS 3.35 to 4.28, we're having trouble with the font not scaling to as large of a size and it also begins to look blurry. Is there supposed to be a font size limit for 4.28? Is there a way to change how the font is rendered in 4.28 to be more like it was in 3.35?&lt;/P&gt;&lt;P&gt;Below are two examples, one in 3.35, the other in 4.28, with the same font settings (size 400pt). However, the 3.35 text is much sharper and is also larger.&lt;/P&gt;&lt;P&gt;Arrow in Arial font for 4.28:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EthanCranmer_1-1703794743830.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90097i7E0ECA975E451A5C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EthanCranmer_1-1703794743830.png" alt="EthanCranmer_1-1703794743830.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Arrow in Arial font for 3.35:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EthanCranmer_2-1703794825158.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90098i293D8A7AE6FA8F38/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EthanCranmer_2-1703794825158.png" alt="EthanCranmer_2-1703794825158.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Code sample 4.28:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;meta charset="utf-8" /&amp;gt;
    &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" /&amp;gt;
    &amp;lt;title&amp;gt;Intro to MapView - Create a 2D map&amp;lt;/title&amp;gt;
    &amp;lt;style&amp;gt;
      html,
      body,
      #viewDiv {
        padding: 0;
        margin: 0;
        height: 100%;
        width: 100%;
      }
    &amp;lt;/style&amp;gt;
    &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/4.28/esri/themes/light/main.css" /&amp;gt;
    &amp;lt;script src="https://js.arcgis.com/4.28/"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script&amp;gt;
      require(["esri/Map", "esri/geometry/Point", "esri/views/MapView", "esri/Graphic"], (Map, Point, MapView, Graphic) =&amp;gt; {
        const map = new Map({
          basemap: "topo-vector"
        });

        let textSymbol = {
            type:"text",
            text: "→",
            color: "#FF0000",

            font: {
                type:"font",
                family: "Arial",
                size: 400,
                style: 'normal',
                variant: "normal",
                weight: "normal"
            }
            };

        let graphic = new Graphic({
            geometry: new Point({
                longitude: 15,
                latitude: 65 
            }),
            symbol: textSymbol
        });

        const view = new MapView({
          container: "viewDiv", // Reference to the view div created in step 5
          map: map, // Reference to the map object created before the view
          zoom: 4, // Sets zoom level based on level of detail (LOD)
          center: [15, 65] // Sets center point of view using longitude,latitude
        });
        
        view.graphics.add(graphic);
      });
    &amp;lt;/script&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code sample 3.35:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;meta charset="utf-8" /&amp;gt;
    &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" /&amp;gt;
    &amp;lt;title&amp;gt;Intro to MapView - Create a 2D map&amp;lt;/title&amp;gt;
    &amp;lt;style&amp;gt;
      html,
      body,
      #viewDiv {
        padding: 0;
        margin: 0;
        height: 100%;
        width: 100%;
      }
    &amp;lt;/style&amp;gt;
    &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/3.35/esri/css/esri.css" /&amp;gt;
    &amp;lt;script src="https://js.arcgis.com/3.35/"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script&amp;gt;
      require(["esri/map", "esri/geometry/Point", "esri/graphic", "esri/symbols/TextSymbol", "dojo/_base/Color"], (Map, Point, Graphic, TextSymbol, Color) =&amp;gt; {

        let map = new Map("viewDiv", {
          basemap: "topo-vector",
          zoom: 4,
          center: [15, 65] // Sets center point of view using longitude,latitude
        });

        map.on('load', () =&amp;gt; {
            let textSymbol = new TextSymbol ({
            type:"esriTS",
            text: "→",
            color: Color.fromHex("#FF0000"),

            font: {
                type:"font",
                family: "Arial",
                size: 400,
                style: 'normal',
                variant: "normal",
                weight: "normal"
            }
            });

        let graphic = new Graphic(
            new Point({type: "point",
                longitude: 15,
                latitude: 65 }),
                textSymbol
        );

        map.graphics.add(graphic);
        });
      });
    &amp;lt;/script&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Dec 2023 20:26:26 GMT</pubDate>
    <dc:creator>EthanCranmer</dc:creator>
    <dc:date>2023-12-28T20:26:26Z</dc:date>
    <item>
      <title>Font Scaling Issues in 4.X</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/font-scaling-issues-in-4-x/m-p/1364850#M83221</link>
      <description>&lt;P&gt;When switching from ArcGIS 3.35 to 4.28, we're having trouble with the font not scaling to as large of a size and it also begins to look blurry. Is there supposed to be a font size limit for 4.28? Is there a way to change how the font is rendered in 4.28 to be more like it was in 3.35?&lt;/P&gt;&lt;P&gt;Below are two examples, one in 3.35, the other in 4.28, with the same font settings (size 400pt). However, the 3.35 text is much sharper and is also larger.&lt;/P&gt;&lt;P&gt;Arrow in Arial font for 4.28:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EthanCranmer_1-1703794743830.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90097i7E0ECA975E451A5C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EthanCranmer_1-1703794743830.png" alt="EthanCranmer_1-1703794743830.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Arrow in Arial font for 3.35:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EthanCranmer_2-1703794825158.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90098i293D8A7AE6FA8F38/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EthanCranmer_2-1703794825158.png" alt="EthanCranmer_2-1703794825158.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Code sample 4.28:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;meta charset="utf-8" /&amp;gt;
    &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" /&amp;gt;
    &amp;lt;title&amp;gt;Intro to MapView - Create a 2D map&amp;lt;/title&amp;gt;
    &amp;lt;style&amp;gt;
      html,
      body,
      #viewDiv {
        padding: 0;
        margin: 0;
        height: 100%;
        width: 100%;
      }
    &amp;lt;/style&amp;gt;
    &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/4.28/esri/themes/light/main.css" /&amp;gt;
    &amp;lt;script src="https://js.arcgis.com/4.28/"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script&amp;gt;
      require(["esri/Map", "esri/geometry/Point", "esri/views/MapView", "esri/Graphic"], (Map, Point, MapView, Graphic) =&amp;gt; {
        const map = new Map({
          basemap: "topo-vector"
        });

        let textSymbol = {
            type:"text",
            text: "→",
            color: "#FF0000",

            font: {
                type:"font",
                family: "Arial",
                size: 400,
                style: 'normal',
                variant: "normal",
                weight: "normal"
            }
            };

        let graphic = new Graphic({
            geometry: new Point({
                longitude: 15,
                latitude: 65 
            }),
            symbol: textSymbol
        });

        const view = new MapView({
          container: "viewDiv", // Reference to the view div created in step 5
          map: map, // Reference to the map object created before the view
          zoom: 4, // Sets zoom level based on level of detail (LOD)
          center: [15, 65] // Sets center point of view using longitude,latitude
        });
        
        view.graphics.add(graphic);
      });
    &amp;lt;/script&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code sample 3.35:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;meta charset="utf-8" /&amp;gt;
    &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" /&amp;gt;
    &amp;lt;title&amp;gt;Intro to MapView - Create a 2D map&amp;lt;/title&amp;gt;
    &amp;lt;style&amp;gt;
      html,
      body,
      #viewDiv {
        padding: 0;
        margin: 0;
        height: 100%;
        width: 100%;
      }
    &amp;lt;/style&amp;gt;
    &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/3.35/esri/css/esri.css" /&amp;gt;
    &amp;lt;script src="https://js.arcgis.com/3.35/"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script&amp;gt;
      require(["esri/map", "esri/geometry/Point", "esri/graphic", "esri/symbols/TextSymbol", "dojo/_base/Color"], (Map, Point, Graphic, TextSymbol, Color) =&amp;gt; {

        let map = new Map("viewDiv", {
          basemap: "topo-vector",
          zoom: 4,
          center: [15, 65] // Sets center point of view using longitude,latitude
        });

        map.on('load', () =&amp;gt; {
            let textSymbol = new TextSymbol ({
            type:"esriTS",
            text: "→",
            color: Color.fromHex("#FF0000"),

            font: {
                type:"font",
                family: "Arial",
                size: 400,
                style: 'normal',
                variant: "normal",
                weight: "normal"
            }
            });

        let graphic = new Graphic(
            new Point({type: "point",
                longitude: 15,
                latitude: 65 }),
                textSymbol
        );

        map.graphics.add(graphic);
        });
      });
    &amp;lt;/script&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 20:26:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/font-scaling-issues-in-4-x/m-p/1364850#M83221</guid>
      <dc:creator>EthanCranmer</dc:creator>
      <dc:date>2023-12-28T20:26:26Z</dc:date>
    </item>
  </channel>
</rss>

