Closed gertst closed 4 years ago
I have just released v3.4.0 that includes getTextColumns() that does what you need. This was previously a private function and it has been changed to the public class definition. It was done some time ago but the new version not released until now.
Thanks Marco, that's exactly what I need :-) Congrats for your splendid work with this library, btw!
This feature opens nice new behavior into my project ! Thanks a lot for this masterpiece :-) i donated !
I programmed a menu system on my led matrix display using a rotary switch. I want to start a scroll animation of the current menu item when the menu item text is too long to fit the display. Once a smaller menu item is selected, the scroll should stop.
Is there a way to calculate the required column length for the text to display? If it exceeds the columns of the display I want to enable the scroll effect. The best I could find is
getTextExtent
, but this is not sufficient for what I need.Here's what I have so far (part of a class that handles the display):
Any ideas on how to improve this?
Thanks!