<?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: Bug in how text is rendered in textBox JMP16? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Bug-in-how-text-is-rendered-in-textBox-JMP16/m-p/407259#M65728</link>
    <description>&lt;P&gt;Thank you for the report and example - this has been reported and will be fixed in a future release.&amp;nbsp; The issue appears to be related to line heights - in addition to the suggestion from&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;you could add a "\!n " on the end to add more vertical space, or break the string up into multiple text boxes.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Aug 2021 13:58:37 GMT</pubDate>
    <dc:creator>danschikore</dc:creator>
    <dc:date>2021-08-05T13:58:37Z</dc:date>
    <item>
      <title>Bug in how text is rendered in textBox JMP16?</title>
      <link>https://community.jmp.com/t5/Discussions/Bug-in-how-text-is-rendered-in-textBox-JMP16/m-p/407069#M65708</link>
      <description>&lt;P&gt;We have updated to JMP 16 and immediately users pointed out some bugs in the output of our scripts.&lt;/P&gt;&lt;P&gt;For instance, consider the script below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;detailsText =
"This is long text that is made dynamically\!nit has some dynamica numeric values\!n"
||"each on of which is important and  \!nneeds to be shown formatted in &amp;lt;b&amp;gt;&amp;lt;font color='Red'&amp;gt;RED FONT&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;"
|| " which might also by dynamic\!nLike this: &amp;lt;b&amp;gt;&amp;lt;font color='" || "Red"
 || "'&amp;gt;" || Char( 6 ) || "&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;\!n this here is your value and " || "here is" || " another value: &amp;lt;font color='green'&amp;gt;" || Char( 0 ) || "&amp;lt;/font&amp;gt;"
 ;
	
detailsTB = Text Box( detailsText );
	
	//detailsTB &amp;lt;&amp;lt; Set Font( "Agency FB", 12 );
detailsTB &amp;lt;&amp;lt; Set Font( "Calibri", 12 );
detailsTB &amp;lt;&amp;lt; Markup;
detailsTB &amp;lt;&amp;lt; Justify Text( "right" );
	
w = New Window( "Formatted Text", detailsTB );
	
//detailsTB &amp;lt;&amp;lt; Set Font( "Agency FB", 12 );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;it will result in the&amp;nbsp; window shown below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-08-04 125611.png" style="width: 367px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/34772i708A337A35EF3E67/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-08-04 125611.png" alt="Screenshot 2021-08-04 125611.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if we uncomment the line that sets a different font (in this case Agency FB), or run this command afterwards, then the text (even though is still present in the textbox, is not rendered like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-08-04 125658.png" style="width: 362px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/34773i2D4E4E6EC4CCDB9E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-08-04 125658.png" alt="Screenshot 2021-08-04 125658.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And I'm sure the text is still there: it's just not rendered.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-08-04 130229.png" style="width: 731px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/34774i681F2C23FB5AB41A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-08-04 130229.png" alt="Screenshot 2021-08-04 130229.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I fix it? If this is a bug - is it known? When will it be fixed?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:54:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Bug-in-how-text-is-rendered-in-textBox-JMP16/m-p/407069#M65708</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2023-06-09T19:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in how text is rendered in textBox JMP16?</title>
      <link>https://community.jmp.com/t5/Discussions/Bug-in-how-text-is-rendered-in-textBox-JMP16/m-p/407176#M65719</link>
      <description>&lt;P&gt;My guess is that the height of text box changes for some reason and last line will be outside of it (as in hidden). There are most likely better ways to handle this changed behaviour but... quick fix could be to use Set N Lines&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;detailsTB &amp;lt;&amp;lt; SetNLines(10)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 06:00:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Bug-in-how-text-is-rendered-in-textBox-JMP16/m-p/407176#M65719</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-08-05T06:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in how text is rendered in textBox JMP16?</title>
      <link>https://community.jmp.com/t5/Discussions/Bug-in-how-text-is-rendered-in-textBox-JMP16/m-p/407181#M65721</link>
      <description>&lt;P&gt;In my experience JMP does not handle fonts properly -- specifically the height of various fonts can be off a bit.&amp;nbsp; My only solution has been to find fonts that don't give issues and avoid fonts that do give issues (most fonts seem to give issues)&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 07:31:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Bug-in-how-text-is-rendered-in-textBox-JMP16/m-p/407181#M65721</guid>
      <dc:creator>ErraticAttack</dc:creator>
      <dc:date>2021-08-05T07:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in how text is rendered in textBox JMP16?</title>
      <link>https://community.jmp.com/t5/Discussions/Bug-in-how-text-is-rendered-in-textBox-JMP16/m-p/407259#M65728</link>
      <description>&lt;P&gt;Thank you for the report and example - this has been reported and will be fixed in a future release.&amp;nbsp; The issue appears to be related to line heights - in addition to the suggestion from&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;you could add a "\!n " on the end to add more vertical space, or break the string up into multiple text boxes.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 13:58:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Bug-in-how-text-is-rendered-in-textBox-JMP16/m-p/407259#M65728</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2021-08-05T13:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in how text is rendered in textBox JMP16?</title>
      <link>https://community.jmp.com/t5/Discussions/Bug-in-how-text-is-rendered-in-textBox-JMP16/m-p/408152#M65806</link>
      <description>&lt;P&gt;Thanks a lot! Simple adding&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"\!n"&lt;/PRE&gt;&lt;P&gt;did not help - bug's behavior is pretty elaborated and it's hard to pinpoint when it will and will not show last line/several lines. But setting number of lines as you mentioned definitely helped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 19:47:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Bug-in-how-text-is-rendered-in-textBox-JMP16/m-p/408152#M65806</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2021-08-09T19:47:42Z</dc:date>
    </item>
  </channel>
</rss>

