<?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 Bug - LineHeight property on TextSymbol not working in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-lineheight-property-on-textsymbol-not-working/m-p/1408271#M84285</link>
    <description>&lt;P&gt;When creating a new text Graphic symbol, the 'lineHeight' property of the symbol doesn't seem to actually apply on multiline text symbols as expected in the Javascript API 4.29.&lt;BR /&gt;&lt;BR /&gt;The documentation states the lineHeight property should be a value between 0.1and 4 which should act as a multiplier for the standard line height of the text label.&lt;BR /&gt;&lt;BR /&gt;Using the esri code sample&amp;nbsp; "MapNotesLayer"&amp;nbsp; (&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-mapnoteslayer/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/layers-mapnoteslayer/&lt;/A&gt;)&lt;BR /&gt;&lt;BR /&gt;And setting the lineHeight on the textSymbol to 4&amp;nbsp; show exactly the same result as setting the value to 0.1&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JamesIng_0-1712799279328.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100649i0872A8EB56334BA5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JamesIng_0-1712799279328.png" alt="JamesIng_0-1712799279328.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JamesIng_1-1712799341962.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100650i384AB6BD329AD176/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JamesIng_1-1712799341962.png" alt="JamesIng_1-1712799341962.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Note the property of lineWidth is set to cause the symbol to be multi-lined, but the same result occurs when setting a textSymbol to be multiline using the "\n" escape.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Apr 2024 01:38:47 GMT</pubDate>
    <dc:creator>JamesIng</dc:creator>
    <dc:date>2024-04-11T01:38:47Z</dc:date>
    <item>
      <title>Bug - LineHeight property on TextSymbol not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-lineheight-property-on-textsymbol-not-working/m-p/1408271#M84285</link>
      <description>&lt;P&gt;When creating a new text Graphic symbol, the 'lineHeight' property of the symbol doesn't seem to actually apply on multiline text symbols as expected in the Javascript API 4.29.&lt;BR /&gt;&lt;BR /&gt;The documentation states the lineHeight property should be a value between 0.1and 4 which should act as a multiplier for the standard line height of the text label.&lt;BR /&gt;&lt;BR /&gt;Using the esri code sample&amp;nbsp; "MapNotesLayer"&amp;nbsp; (&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-mapnoteslayer/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/layers-mapnoteslayer/&lt;/A&gt;)&lt;BR /&gt;&lt;BR /&gt;And setting the lineHeight on the textSymbol to 4&amp;nbsp; show exactly the same result as setting the value to 0.1&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JamesIng_0-1712799279328.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100649i0872A8EB56334BA5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JamesIng_0-1712799279328.png" alt="JamesIng_0-1712799279328.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JamesIng_1-1712799341962.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100650i384AB6BD329AD176/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JamesIng_1-1712799341962.png" alt="JamesIng_1-1712799341962.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Note the property of lineWidth is set to cause the symbol to be multi-lined, but the same result occurs when setting a textSymbol to be multiline using the "\n" escape.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 01:38:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-lineheight-property-on-textsymbol-not-working/m-p/1408271#M84285</guid>
      <dc:creator>JamesIng</dc:creator>
      <dc:date>2024-04-11T01:38:47Z</dc:date>
    </item>
  </channel>
</rss>

