<?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: Programmatically check if paragraph text fits in provided envelope? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/programmatically-check-if-paragraph-text-fits-in/m-p/1068479#M6739</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1134"&gt;@JeffBarrette&lt;/a&gt;.&amp;nbsp;I was thinking about adding "rectangle text fitting strategy" as an idea, but it sounds like this is already on Esri's radar. Do you know when this might be available?&lt;/P&gt;&lt;P&gt;It would be really cool if text fitting strategies for legends and other layout text boxes included options like abbreviations and font width compression (as is already possible for map labels).&lt;/P&gt;&lt;P&gt;This is closely related to an idea I posted about a year ago that hasn't gotten much attention:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/intelligent-grouping-flow-for-layout-elements/idi-p/930656" target="_blank"&gt;Intelligent grouping (flow) for layout elements&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jun 2021 17:06:27 GMT</pubDate>
    <dc:creator>JeffThomasILM</dc:creator>
    <dc:date>2021-06-15T17:06:27Z</dc:date>
    <item>
      <title>Programmatically check if paragraph text fits in provided envelope?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/programmatically-check-if-paragraph-text-fits-in/m-p/874277#M5340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using LayoutElementFactory.Instance.CreateRectangleParagraphGraphicElement() to create paragraph text in a layout. The method takes an Envelope argument for drawing the text within. Is there any way to determine whether the rendered text actually fit within the provided envelope?&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/493598_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 14:54:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/programmatically-check-if-paragraph-text-fits-in/m-p/874277#M5340</guid>
      <dc:creator>BrennanJohnson</dc:creator>
      <dc:date>2020-05-27T14:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically check if paragraph text fits in provided envelope?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/programmatically-check-if-paragraph-text-fits-in/m-p/874278#M5341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Brennan.&amp;nbsp; Thanks for your request/idea.&amp;nbsp; There are a couple of things we want to do:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, in the UI, like with Legends, is to have a fitting strategy for rectangle text.&amp;nbsp; For example, multiple columns, shrink text or enlarge box.&amp;nbsp; The problem enlarging the box is knowing which direction.&amp;nbsp; Perharps we can have options like change only width, change only height or change both by maintaining the aspect ratio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, provide a boolean that returns if a the information fits in its envelope.&amp;nbsp; This can apply to area text, scale bars, legends, etc.&amp;nbsp; Having this before the item above would allow you to iterate through sizes until all text fit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2020 20:22:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/programmatically-check-if-paragraph-text-fits-in/m-p/874278#M5341</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2020-05-28T20:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically check if paragraph text fits in provided envelope?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/programmatically-check-if-paragraph-text-fits-in/m-p/874279#M5342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A href="https://community.esri.com/migrated-users/3200"&gt;Jeff Barrette&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those enhancements sound great and would solve my current problems with text sizing/positioning (assuming these properties can be set with the SDK for programmatically generated elements). With the option to 'Enlarge Box' on 'Only Height', I could create a paragraph text element at the desired width and with a very small height--then the element would automatically set the envelope height to make the text fit. This would also address the other issue I have:&amp;nbsp;&lt;A href="https://community.esri.com/thread/254007"&gt;How to get size of rendered text?&lt;/A&gt;&amp;nbsp;since the envelope would then correspond to the actual size of the rendered text. I hope those changes are in scope for the next SDK release!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Brennan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2020 14:05:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/programmatically-check-if-paragraph-text-fits-in/m-p/874279#M5342</guid>
      <dc:creator>BrennanJohnson</dc:creator>
      <dc:date>2020-05-29T14:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically check if paragraph text fits in provided envelope?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/programmatically-check-if-paragraph-text-fits-in/m-p/1068479#M6739</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1134"&gt;@JeffBarrette&lt;/a&gt;.&amp;nbsp;I was thinking about adding "rectangle text fitting strategy" as an idea, but it sounds like this is already on Esri's radar. Do you know when this might be available?&lt;/P&gt;&lt;P&gt;It would be really cool if text fitting strategies for legends and other layout text boxes included options like abbreviations and font width compression (as is already possible for map labels).&lt;/P&gt;&lt;P&gt;This is closely related to an idea I posted about a year ago that hasn't gotten much attention:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/intelligent-grouping-flow-for-layout-elements/idi-p/930656" target="_blank"&gt;Intelligent grouping (flow) for layout elements&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 17:06:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/programmatically-check-if-paragraph-text-fits-in/m-p/1068479#M6739</guid>
      <dc:creator>JeffThomasILM</dc:creator>
      <dc:date>2021-06-15T17:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically check if paragraph text fits in provided envelope?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/programmatically-check-if-paragraph-text-fits-in/m-p/1068484#M6741</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/268818"&gt;@JeffThomasILM&lt;/a&gt;&amp;nbsp;, please add the idea.&amp;nbsp; It allows others to see and helps us prioritize.&amp;nbsp; Add your other ideas too.&lt;/P&gt;&lt;P&gt;Jeff - Layout and arcpy.mp teams.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 17:08:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/programmatically-check-if-paragraph-text-fits-in/m-p/1068484#M6741</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2021-06-15T17:08:09Z</dc:date>
    </item>
  </channel>
</rss>

