<?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: Calculating the width for a TextSymbol in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/calculating-the-width-for-a-textsymbol/m-p/600067#M1829</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If tried that. The markers in the pictures are calculated that way. The width differs greatly for different fonts. The font size corresponds with height not width.&lt;/P&gt;&lt;P&gt;The font size in the pictures is 48. I've also tried to use the Java2D FontMetrics to calculate the width but the results vary from the displayed text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="5abf998f-7fb2-4cce-86f8-950c80c73e9d_1440149067006.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/123277_5abf998f-7fb2-4cce-86f8-950c80c73e9d_1440149067006.png" style="height: auto;" /&gt;&lt;IMG alt="5abf998f-7fb2-4cce-86f8-950c80c73e9d_1440149068991.png" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/123305_5abf998f-7fb2-4cce-86f8-950c80c73e9d_1440149068991.png" style="height: auto;" /&gt;&lt;IMG alt="5abf998f-7fb2-4cce-86f8-950c80c73e9d_1440149071227.png" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/123306_5abf998f-7fb2-4cce-86f8-950c80c73e9d_1440149071227.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Aug 2015 09:29:57 GMT</pubDate>
    <dc:creator>GabrielUnmüßig</dc:creator>
    <dc:date>2015-08-21T09:29:57Z</dc:date>
    <item>
      <title>Calculating the width for a TextSymbol</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/calculating-the-width-for-a-textsymbol/m-p/600065#M1827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to get or calculate the displayed width of a TextSymbol? The TextSymbol.getWidth() method returns 0 because the geometry is a point. Im trying to draw selection markers around the symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Text.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/123148_Text.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 15:23:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/calculating-the-width-for-a-textsymbol/m-p/600065#M1827</guid>
      <dc:creator>GabrielUnmüßig</dc:creator>
      <dc:date>2015-08-20T15:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating the width for a TextSymbol</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/calculating-the-width-for-a-textsymbol/m-p/600066#M1828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting.&lt;/P&gt;&lt;P&gt;Have you tried doing something with getting the font size from the text symbol and finding the length of the String value returned from TextSymbol.getText()?&lt;/P&gt;&lt;P&gt;I wonder if evaluating these two variables would give you a rough guesstimate if the size of the symbol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 18:47:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/calculating-the-width-for-a-textsymbol/m-p/600066#M1828</guid>
      <dc:creator>EricBader</dc:creator>
      <dc:date>2015-08-20T18:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating the width for a TextSymbol</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/calculating-the-width-for-a-textsymbol/m-p/600067#M1829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If tried that. The markers in the pictures are calculated that way. The width differs greatly for different fonts. The font size corresponds with height not width.&lt;/P&gt;&lt;P&gt;The font size in the pictures is 48. I've also tried to use the Java2D FontMetrics to calculate the width but the results vary from the displayed text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="5abf998f-7fb2-4cce-86f8-950c80c73e9d_1440149067006.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/123277_5abf998f-7fb2-4cce-86f8-950c80c73e9d_1440149067006.png" style="height: auto;" /&gt;&lt;IMG alt="5abf998f-7fb2-4cce-86f8-950c80c73e9d_1440149068991.png" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/123305_5abf998f-7fb2-4cce-86f8-950c80c73e9d_1440149068991.png" style="height: auto;" /&gt;&lt;IMG alt="5abf998f-7fb2-4cce-86f8-950c80c73e9d_1440149071227.png" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/123306_5abf998f-7fb2-4cce-86f8-950c80c73e9d_1440149071227.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 09:29:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/calculating-the-width-for-a-textsymbol/m-p/600067#M1829</guid>
      <dc:creator>GabrielUnmüßig</dc:creator>
      <dc:date>2015-08-21T09:29:57Z</dc:date>
    </item>
  </channel>
</rss>

