schreibfaul1 / ESP32-MiniWebRadio

Internetradio with ESP32, I2S DAC and SPI TFT Display with Touchpad
https://www.youtube.com/watch?v=6QbPee2583o
290 stars 76 forks source link

The entire title is missing from the display. #427

Open hevet opened 1 month ago

hevet commented 1 month ago

I have a display on ili9341. Sometimes the full title is not displayed on the display, but the full title is displayed on the web interface. An example of what it looks like in the photos below.

Zrzut ekranu 2024-05-23 101941

image

schreibfaul1 commented 1 month ago

At the moment, the possible length of the text is estimated based on the number of letters and then the character size is selected. Sometimes it doesn't fit. I will do this differently in future. P.S. From V3.1 you can click on the Into image via the web interface (tab "Info") and a hardcopy of the display will be created. This saves you having to take a photo.

schreibfaul1 commented 1 month ago

I have now changed this. We have 10 font sizes. Starting with the largest, the system checks whether the text fits into the given window. If this is not the case, the font size is reduced, checked ... etc. The font size is no longer based on an estimate, the font is now often larger than in the previous version.

hevet commented 1 month ago

Thanks @schreibfaul1, When I come back, I'll check how it works now :)

hevet commented 1 month ago

@schreibfaul1 Something is wrong. When I turn on the radio that has no information, it will mean that the information will not be displayed on any station if I switch up and down. If I select a station using the numeric keypad, the information will appear again. The information is always correct in the web interface.

hevet commented 1 month ago

@schreibfaul1 I added a link to a video showing the described problem. https://drive.google.com/file/d/17vC1TxRus39dR8XoQojxhxOhG3NypZEq/view?usp=drivesdk

schreibfaul1 commented 1 month ago

I didn't notice this during my tests. I had hidden the text box for the stream tiltles when there is nothing to display. After that, nothing is visible. I think it will be better now.

hevet commented 1 month ago

@schreibfaul1 It's better, it looks good :)

github-actions[bot] commented 4 days ago

This issue is stale because it has been open for 30 days with no activity.