issues with text_font #884
Replies: 1 comment 2 replies
-
https://www.openhasp.com/0.7.0/design/fonts/#truetype
You've got the cheapest display, without PSram. When you then add complex designs with TrueType font sizes, the ESP32 is going to have a very hard time with its 520kB of memory... You simply can not expect desktop performance, there are trade-offs to be made... Limit yourself to 12, 16, 24 and 32pt sizes as these don't add memory requirements. Any other size is rendered via TrueType vector scaling; adding MCU and memory pressure. You can use maybe one or two other sizes on simple pages, but if you add too much, stability is going to suffer. There is no guardrail, openHASP will let you push it to the limit, but your mileage may vary. You seem to be using anything but the per-rendered font sizes... Either get a device with PSram that supports your layout requirements, or scale back the use of text_font and limit your designs to 12, 16, 24 and 32pt sizes. You really need PSram for other sizes. You might read up on Memory Usage here https://www.openhasp.com/0.7.0/firmware/compiling/memory/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
during the last weeks I heavily worked to integrate the CYD into my NodeRed environment.
It was a real pleasure to use OpenHasp together with assistence of OpenHaspDesigner!
But now as my page as a certain complexity the stability of the display suffers a lot.
Accessing the WebUI is nearly impossible, often several resets needed until WebUI works again.
Updates of the page are sometimes "incomplete". Here is a screenshot of my page showing a "half" sun.
The device regularly does reboots.
As the device has no PS-RAM I need to intensively use icons from the font.
It seems that text_font of labels has a big impact on stability.
Obviously I did not understand the concept behind and unfortunately am not able to understand the source code, too.
I used text_font attribute to get scaled characters/icons.
This worked fine until some complexity limit.
In the screenshot I recently added the lower right section for the car and the car icon used text_font = 50.
This leads to regular system crashes.
I figured out that the system is more stable with text_font=60 but don't know why.
Attached you find the source of my page. I would really appreciate to get some advice which text_font values are "good" and which are "bad" and learn about the background.
Beta Was this translation helpful? Give feedback.
All reactions