-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TextBox font problem #62
Comments
Sorry, but i'm retired and living on social security so I can't afford all of the boards and displays Calvin supports. I ran your tests on my arduino mega and adafruit 2.8 tft. It ran fine in both cases. |
Thanks! I completely understand that it is very difficult to test every possible platform. I really appreciate the work you have done, it is super useful. If the fix is not straightforward I can probably figure out a workaround. I really need a tiny font for my log window.
Thank you for the rapid response.
Ted
…-------- Original Message --------
From: Paul Conti <notifications@github.com>
Sent: Wed Jan 22 13:47:18 PST 2020
To: ImpulseAdventure/GUIslice-Builder <guislice-builder@noreply.github.com>
Cc: rotus8 <rotus8@sonic.net>, Author <author@noreply.github.com>
Subject: Re: [ImpulseAdventure/GUIslice-Builder] TextBox font problem (#62)
Sorry, but i'm retired and living on social security so I can't afford all of the boards and displays Calvin supports. I ran your tests on my arduino mega and adafruit 2.8 tft. It ran fine in both cases.
As far as I can see the code generation is correct so I suspect it's a problem with GUIslice api.
I'll pass this along to Cal and see what he says. If it is a problem with the Builder I'll fix it.
Paul--
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#62 (comment)
|
Hi Ted -- I have tried recreating the scenario you reported on my ESP32 Adafruit Feather but have not observed the same issue. Is there any chance you might be able to capture a short video clip of what you see on the display and attach it to this ticket? It seems a bit surprising to me that the sample code would cause the font to change during runtime unless perhaps there was a memory corruption event. When you load the "textBoxTestFontError" generated code into a fresh Arduino IDE instance, do you still observe the same problem (ie. is it easily reproducible on your end?) What MCU device (ATmega, ESP32, etc.) and which GUIslice config file are you using in your environment? Like Paul said, my guess is that this wouldn't be a Builder issue, so I'll transfer the ticket accordingly once I can get closer to reproducing it on my side. many thanks! |
Due to lack of activity I'm going to close this issue for now. |
Well, there may be a lack of activity, but the
problem is still there. The example I posted using the builder
example on a ESP32 shows the problem. I have a hack on my system
to work for now so I won't push it. I am not sure what
additional information I can supply, if you can suggest
something I can try.
Thank you for your efforts though, you have
allowed me to make a great application. I am most grateful.
Ted
|
Ted: What is the exact hardware MCU and Display you are using? Its clearly a memory corruption problem but the sample you gave runs fine for us so these |
I am using an Adafruit HUZZAH32 ESP32 Feather Board (https://www.adafruit.com/product/3405) with an Adafruit TFT FeatherWing - 3.5" 480x320 Touchscreen (https://www.adafruit.com/product/3651). I am using the esp-tftespi-default-stmpe610.h config file, only modified with touch screen calibration. The test sketch shows the error from a fresh build, I will attempt to upload the short video I made showing the problem. I would post my application, but it is quite large, it has eight screen pages plus several popups, more than 3000 lines of code. The difficulty I had is on a logging page which required a maximum size textBox with a tiny font, I used BuiltIn(1x)->5x8pt7b. My "workaround" (I would really call it a hack) is to use only BuiltIn fonts for all the elements on the page, it has an EXIT button plus I added two dummy text elements before and after the textBox which use the same 1x font. I also had to change the project default background color to what I used for the textBox fill color because sometimes the default color would be used. I have ordered an extra display and MCU board that I would be happy to send to you if it would be useful. Ted |
Hmmm, I thought this config was the one Calvin tested with. In looking over your answers for software versions you show One remaining thing would be your TFT_espi User_Setup.h and the your actual Thank you for your patience. |
Ted: |
My installation shows #define GUISLICE_VER "0.13.0" in version.h. I could not get the Arduino library manager to install anything else, so I sideloaded 0.13.0.16. I had some hopes that this would fix it, but the problem persists. I am using TFT_esp 1.4.20. Here are my setup/config files. Let me know if there is anything else I can do to help. My offer stands to send you an MCU and display if that will help; it is on order, I should have it in a week or so. |
Thanks for the hardware offer and yes, I would need it to hunt down the problem. I have attached a modified XTextbox.<h,c> that doesn't fix the problem as much as tries to workaround it. Give it a try. If it fails just go back to the original versions. |
Thanks for the effort, but the new XTextbox
doesn't change the behavior. The hardware is on order and I will
be out of town next week. I'll arrange to ship it to you after I
get back.
Ted
On 2/14/2020 6:38 AM, Paul Conti wrote:
Thanks for the hardware offer and yes, I would need it to hunt
down the problem.
You can go to my profile for my public email address. Send me a
message if you still want to send me your hardware and I'll give
you my contact information.
I have attached a modified XTextbox.<h,c> that doesn't
fix the problem as much as tries to workaround it. Give it a
try. If it fails just go back to the original versions.
Paul--
XTextbox.zip
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "#62?email_source=notifications\u0026email_token=ALMK4WHPVUIVNVSYJDLLVALRC2UFLA5CNFSM4KKL2YHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELZHMZY#issuecomment-586315367",
"url": "#62?email_source=notifications\u0026email_token=ALMK4WHPVUIVNVSYJDLLVALRC2UFLA5CNFSM4KKL2YHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELZHMZY#issuecomment-586315367",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
|
Hi @rotus8 -- I took another look at this issue tonight and think I see a potential source of the problem.
For (2): TFT_eSPI mode:
//<Fonts !Start!>
#include <Adafruit_GFX.h>
#include <Fonts/FreeMono9pt7b.h>
//<Fonts !End!>
//<Fonts !Start!>
#include "TFT_eSPI.h"
//<Fonts !End!>
For (1): Adafruit HX8357 mode:
|
Cal : Thanks for taking a second look. As for (2) no his Builder is correctly configured his app shows: Assuming option (1) is a no go and the second set of hardware he has on order reproduces the same issue and that he sends a set I should be able to determine whats is going on. |
Ted: If you get a chance please confirm the fixes and I'll close |
Great, I'll try it out in the morning.
Thanks!
Ted
…-------- Original Message --------
From: Paul Conti <notifications@github.com>
Sent: Thu Feb 27 12:22:22 PST 2020
To: ImpulseAdventure/GUIslice-Builder <guislice-builder@noreply.github.com>
Cc: rotus8 <rotus8@sonic.net>, Mention <mention@noreply.github.com>
Subject: Re: [ImpulseAdventure/GUIslice-Builder] TextBox font problem (#62)
Ted:
Thanks to you I was able to find and fix the bug.
It turned out to be inside GUIslice API and not a Builder problem.
If you get a chance please confirm the fixes and I'll close
this issue.
Paul--
[XTextbox-BugFix.zip](https://github.com/ImpulseAdventure/GUIslice-Builder/files/4263908/XTextbox-BugFix.zip)
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#62 (comment)
|
Verified. Works fine, please close.
Thanks!
Ted
On 2/27/2020 12:22 PM, Paul Conti
wrote:
Ted:
Thanks to you I was able to find and fix the bug.
It turned out to be inside GUIslice API and not a Builder
problem.
If you get a chance please confirm the fixes and I'll close
this issue.
Paul--
XTextbox-BugFix.zip
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "#62?email_source=notifications\u0026email_token=ALMK4WC5BYKAIA5IF6OQRQTRFAOH5A5CNFSM4KKL2YHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENF2CLA#issuecomment-592159020",
"url": "#62?email_source=notifications\u0026email_token=ALMK4WC5BYKAIA5IF6OQRQTRFAOH5A5CNFSM4KKL2YHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENF2CLA#issuecomment-592159020",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
|
Thanks Ted for the confirmation. I intend to integrate the fix into the library this evening. |
Hello Paul,
I may have spoken too soon. In my full application I find that
sometimes when I switch to my log page with the text box, the text
box fill color is not correct, it uses the "default" fill color.
It corrects itself as soon as text is added to the textbox. The
text font, size, and color are good.
I have not developed a simple test case yet, perhaps it will be
obvious. All else seems to be working fine. I can work on a test
case if the fix is not straightforward.
Thanks
Ted
On 2/27/2020 12:22 PM, Paul Conti
wrote:
Ted:
Thanks to you I was able to find and fix the bug.
It turned out to be inside GUIslice API and not a Builder
problem.
If you get a chance please confirm the fixes and I'll close
this issue.
Paul--
XTextbox-BugFix.zip
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "#62?email_source=notifications\u0026email_token=ALMK4WC5BYKAIA5IF6OQRQTRFAOH5A5CNFSM4KKL2YHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENF2CLA#issuecomment-592159020",
"url": "#62?email_source=notifications\u0026email_token=ALMK4WC5BYKAIA5IF6OQRQTRFAOH5A5CNFSM4KKL2YHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENF2CLA#issuecomment-592159020",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
|
Yes, A test case would help.
I will look over the code in the meantime.
Could you also open a new issue on the GUIslice github (not the Builder)
It will make things easier for Calvin to track any fixes.
Paul--
…________________________________
From: rotus8 <notifications@github.com>
Sent: Sunday, March 1, 2020 3:05 PM
To: ImpulseAdventure/GUIslice-Builder <GUIslice-Builder@noreply.github.com>
Cc: Paul Conti <p_conti@hotmail.com>; State change <state_change@noreply.github.com>
Subject: Re: [ImpulseAdventure/GUIslice-Builder] TextBox font problem (#62)
Hello Paul,
I may have spoken too soon. In my full application I find that
sometimes when I switch to my log page with the text box, the text
box fill color is not correct, it uses the "default" fill color.
It corrects itself as soon as text is added to the textbox. The
text font, size, and color are good.
I have not developed a simple test case yet, perhaps it will be
obvious. All else seems to be working fine. I can work on a test
case if the fix is not straightforward.
Thanks
Ted
On 2/27/2020 12:22 PM, Paul Conti wrote:
Ted:
Thanks to you I was able to find and fix the bug.
It turned out to be inside GUIslice API and not a Builder
problem.
If you get a chance please confirm the fixes and I'll close
this issue.
Paul--
XTextbox-BugFix.zip
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "#62?email_source=notifications\u0026email_token=ALMK4WC5BYKAIA5IF6OQRQTRFAOH5A5CNFSM4KKL2YHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENF2CLA#issuecomment-592159020",
"url": "#62?email_source=notifications\u0026email_token=ALMK4WC5BYKAIA5IF6OQRQTRFAOH5A5CNFSM4KKL2YHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENF2CLA#issuecomment-592159020",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub<#62?email_source=notifications&email_token=AKQIQYSRACM25X5X3SB2CVTRFK5X5A5CNFSM4KKL2YHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENNJJ4Y#issuecomment-593138931>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKQIQYUKOWYAQXSLJE5SKMDRFK5X5ANCNFSM4KKL2YHA>.
|
I have created a fairly simple test case. Opened
new GUIslice issue #202.
Ted
On 3/1/2020 1:15 PM, Paul Conti wrote:
Yes, A test case would help.
I will look over the code in the meantime.
Could you also open a new issue on the GUIslice github (not the
Builder)
It will make things easier for Calvin to track any fixes.
Paul--
…________________________________
From: rotus8 <notifications@github.com>
Sent: Sunday, March 1, 2020 3:05 PM
To: ImpulseAdventure/GUIslice-Builder
<GUIslice-Builder@noreply.github.com>
Cc: Paul Conti <p_conti@hotmail.com>; State change
<state_change@noreply.github.com>
Subject: Re: [ImpulseAdventure/GUIslice-Builder] TextBox font
problem (#62)
Hello Paul,
I may have spoken too soon. In my full application I find that
sometimes when I switch to my log page with the text box, the text
box fill color is not correct, it uses the "default" fill color.
It corrects itself as soon as text is added to the textbox. The
text font, size, and color are good.
I have not developed a simple test case yet, perhaps it will be
obvious. All else seems to be working fine. I can work on a test
case if the fix is not straightforward.
Thanks
Ted
On 2/27/2020 12:22 PM, Paul Conti
wrote:
Ted:
Thanks to you I was able to find and fix the bug.
It turned out to be inside GUIslice API and not a Builder
problem.
If you get a chance please confirm the fixes and I'll close
this issue.
Paul--
XTextbox-BugFix.zip
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target":
"#62?email_source=notifications\u0026email_token=ALMK4WC5BYKAIA5IF6OQRQTRFAOH5A5CNFSM4KKL2YHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENF2CLA#issuecomment-592159020",
"url":
"#62?email_source=notifications\u0026email_token=ALMK4WC5BYKAIA5IF6OQRQTRFAOH5A5CNFSM4KKL2YHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENF2CLA#issuecomment-592159020",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on
GitHub<#62?email_source=notifications&email_token=AKQIQYSRACM25X5X3SB2CVTRFK5X5A5CNFSM4KKL2YHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENNJJ4Y#issuecomment-593138931>,
or
unsubscribe<https://github.com/notifications/unsubscribe-auth/AKQIQYUKOWYAQXSLJE5SKMDRFK5X5ANCNFSM4KKL2YHA>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "#62?email_source=notifications\u0026email_token=ALMK4WHJTGAUN2XTXDLHUKDRFLGAFA5CNFSM4KKL2YHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENNLF3I#issuecomment-593146605",
"url": "#62?email_source=notifications\u0026email_token=ALMK4WHJTGAUN2XTXDLHUKDRFLGAFA5CNFSM4KKL2YHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENNLF3I#issuecomment-593146605",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
|
Describe the bug
The font of the text in a textBox gets the wrong font selected. Apparently it is affected by the font selection of other elements. Specifically can be demonstrated in the ex_10_textbox example by changing the font of the quit button to a non-builtin font.
To Reproduce
Steps to reproduce the behavior:
font is used.
Expected behavior
Font of the text in textBox should not be affected by the font in other elements.
Crash log / Project files
Starting point, works.
textBoxTest.zip
Modified font of Quit button, shows failure.
textBoxTestFontError.zip
Screenshots
If applicable, add screenshots to help explain your problem.
Version
Builder version: 0.13.b013
Arduino 1.8.10
GUIslice 0.13.0
OS: [e.g. Windows, LINUX, Mac OS] Windows 10
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: