joBr99 / nspanel-lovelace-ui

Custom Firmware for NsPanel with the design of HomeAssistant's lovelace UI in mind, works with Tasmota.
GNU General Public License v3.0
870 stars 188 forks source link

[BUG] No Cyrillic font support on the screensaver date #686

Closed diahellfire closed 1 year ago

diahellfire commented 1 year ago

PROBLEM DESCRIPTION

No Cyrillic font support on the screensaver. Font used in screensaver ID 1 (date) does not contain Cyrillic, this checked in Nextion Editor. Because of this, there is no date display. (babel is loaded!)

REQUESTED INFORMATION

- [ ] Go to Settings>Add-ons>AppDaemon>Log (or the output of your TS script) and then, provide the output of the log during your issue/bug occurs:

Log output here: Sending MQTT Message: date~08 ������������ 2023 ����������������������



### TO REPRODUCE
_Steps to reproduce the behavior:_

### EXPECTED BEHAVIOUR
_A clear and concise description of what you expected to happen._

### SCREENSHOTS
![photo1673251524](https://user-images.githubusercontent.com/8593409/211263571-84c8b84c-90f7-428c-9592-e605c8df06d1.jpeg)

### ADDITIONAL CONTEXT
ESPhome

### PANEL / FIRMWARE VERION
US-P 
[nspanel_US_P.tft](https://github.com/joBr99/nspanel-lovelace-ui/blob/main/HMI/US/portrait/nspanel_US_P.tft)
yurra2 commented 1 year ago

Hi diahellfire, my NSPanel is able to show Cyrillic fonts on display while log shows ��..

diahellfire commented 1 year ago

All other pages are fine. The problem is only in the DATE field.

diahellfire commented 1 year ago

From fonts:

Noto-sans-24-sp3 font_ID_0

NotoSans-Regular font_ID_1

Editor: nextion_editor

diahellfire commented 1 year ago

NotoSans-Regular not contains cyrilic

yurra2 commented 1 year ago

Perhaps landscape version has different font set. image

diahellfire commented 1 year ago

Yes. It's true.

Landscape version used ID 2 (noto-sans-32-sp3)

nextion_editor_LAND

Noto-sans-32-sp3 font_ID_2

But if change font ID and rebuild i'll have a error in qrcode.

nextion_editor_2

joBr99 commented 1 year ago

yeah, you've already figured it out; US-P is using the wrong font; the icon font doesn't have thoose chars

Uploaded a new version; just flash the development version in the tasmota console:

US PORTRAIT: FlashNextion http://nspanel.pky.eu/lui-us-p.tft

joBr99 commented 1 year ago

But if change font ID and rebuild i'll have a error in qrcode.

Your editor is to new; the project is still on the previous version.

The solution for the qrcode thing is to add an 8 to the command so it is qrcode 8,.....

They added a new parameter to it and there is no word about this in the release notes of the new edtior ...

To be fair the qrcode command isn't documented at all, but that they added a new setting to the qrcode component is also worth mentioning in a changelog ...

Editor updates caused issues in the past in various projects, so I want to wait a bit until I'm updating the project.

For now use 1.63.3

https://nextion.tech/download/nextion-setup-v1-63-3.exe https://nextion.tech/download/nextion-setup-v1-63-3.zip

diahellfire commented 1 year ago

@joBr99 Thank you! All works!