MajicDesigns / MD_Parola

Library for modular scrolling LED matrix text displays
GNU Lesser General Public License v2.1
438 stars 135 forks source link

big fonts justified #40

Closed wchpikus closed 5 years ago

wchpikus commented 5 years ago

Hello. Is it possible to adjust text using big fonts different way as left, center, right? E.g. some pixels of left or right?

MajicDesigns commented 5 years ago

Your question is unclear:

  1. Do you mean one piece of text across the top and bottom rows? Yes, it is possible BUT you may find that it doe not line up well of you are using the 'folding' arrangement for the modules instead of the 'zig-zag' (see https://arduinoplusplus.wordpress.com/2017/03/15/parola-a-to-z-double-height-displays/). This is because the length of the text may be an value that does not position itself in the same way when you turn it upside down.

  2. Do you mean one line of text with some left and some right justified? You need to use more than 2 zones.

wchpikus commented 5 years ago

I means, e.g. display text moved four pixels from the left (2 zones, big fonts,synchronize). I only display text without effects now. How to move it (adjust)? I displaying clock and all the time when hour change from e.g.9am to 10, clock move to right ( one more digits appeared).

MajicDesigns commented 5 years ago

I only display text without effects now You always display using an effect, even if it is PA_PRINT.

  1. Use a fixed width font for the numbers otherwise the justified font will move the numbers around all the time. The clock example uses this type of font for the time.
  2. Place a leading zero if you want a zero in front of the hour, this will automatically align the rest.
  3. If you don't want a zero justify to the right (read the library documentation for the right method, I can't remember) or set that justification up in the first place when you use displayText().

Above all, read the library documentation and look at the examples. All the information is in there.