pixelit-project/PixelIt

Combine centerText with scrollText=auto

miccgn opened this issue ยท 7 comments

It would be a nice enhancement if I could specify both "centerText=true" and "scrollText=auto".

Expected behaviour:

  • if text fits into display: center it, no scrolling
  • if text does not fit into display: ignore centering, start scrolling

Difference to now is that text that fits will be centered, not adjusted left.

I have some ideas how to do this, but this requires redesign of all the DrawText... functions.

Yes, it would have to completely rebuild DrawText.
But I couldn't motivate myself to do it yet.
I had started it once before, but discarded it due to lack of time.

+1 on this one from me too. Having a bitmap and animation, would be nice to have text start centered, then scroll while keeping bitmap. Thanks!

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

Still would be an useful extension

Implemented in latest (2.3.2) release

Thanks!
Sorry, didn't find time to test it yet ๐Ÿ˜•๐Ÿ˜•