-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
[BUG] Font Size too big - leading to 20h uploading tft and data corruption #924
Comments
what? The big font used on the screensaver is number 5 and only contains most basic stuff (even though it could be stripped even more, but it's only 50KB not 5MB) Font 3 and 4 contain all of the icons and that's also the reason why they are so big if you replace them with smaller fonts you will lose all of the icons lol. What are you using to flash the display? Flashing the current firmware takes around 5 Minutes for a full flash with tasmota. Updates are way faster. (at least if there are no changes to the fonts or pictures) |
My mistake, edited the icons font without having the NotoSans font installed and all the icons went away when I generated the font. Figured out after flashing when I saw the missing icons... Flashing from HA directly using the upload_tft service - goes ok until around 4 MB then speed is almost zero... |
with esphome flashing will be slower, but still should be around 15 minutes - also I cannot tell you much about the esphome stuff afaik there is a service you can call in homeassistant with the url to flash the tft file |
Yeah, exactly that service from HA I was using. Anyway, now I'm uploading via increasing desired_display_firmware_version, worked fine until it got to 4 MB and then boom - speed dropped again. Ok, if you want you can close this bug but keep in mind that adding transparency would be a great addition - and it's fairly easy as it takes me around 10-15 minutes to do the changes on the HMI everytime after an update :) If i find something about ESP's transfer issue I'll update the thread, maybe someone else has the same problem. |
guess it's realted to this: sairon/esphome-nspanel-lovelace-ui#27 background images do not really work well in nextion, because there is no transparency - it won't work with all elements that involve images like sliders and switches |
Ok, so assumption confirmed, it's due to EPSHome's recent updates... Heap is filling aggressively PS: about transparency, I feel you, but I can live with grey corners on sliders and color swatches as long as I have full transparency and a nice background for the rest of the screens. |
PROBLEM DESCRIPTION
Recently saw a longer duration on ftf upload to nspanel. Specifically after reaching about 4MB the speed would go to almost zero taking about 20h to complete.
Now this is NOT your problem, but to fix my issue I dug in the MHI file and found that two fonts take around 5 MB - Since the large one is used only for screensaver clock, I limited their characters to only the required ones - lowering their cumulated size from 5MB to around 100 KB.
So... this is mainly a feature request - lower font sizes by including only required characters
But I'll leave it as a bug as it causes many issues along the way because of the buge tft file size
LE: when playing with the fonts I mistakenly removed all the icons - therefore had the big downsize of the tft. Will get back with updates, maybe even close this as Not a Bug...
REQUESTED INFORMATION
Compile HMI, tft file has over 8MB when it could have around 2
TO REPRODUCE
EXPECTED BEHAVIOUR
Smaller tft file zise
SCREENSHOTS
ADDITIONAL CONTEXT
PANEL / FIRMWARE VERION
The text was updated successfully, but these errors were encountered: