drawString is limited to 10 characters?


#1

Hello,

when I use drawString the text is always cut up after exactly 10 characters. For example: backgroundLayer.drawString(1, 1, {0, 0xff, 0}, “Temperature”);
the last “e” is missing. Is this a bug or I am doing something wrong?
With: scrollingLayer1.start(“Temperature”, 1);
it works fine, but i don´t want scrolling text in this case.


#2

You can edit this line:
“limit text to 10 chars, why? for (int i = 0; i < 10; i++)”
in file:
“Layer_Background_Impl.h”

Change the 10 to what you want the limit to be…

Same applies to the indexed layer file:

Layer_Indexed_Impl.h

Thanks
Daniel


#3

Thanks Daniel,

I opened an issue on GitHub to get this fixed in the future:


#4

No problem, this had me stumped when i first ran into it too so all the better everyone knows the solution…

Thanks
Daniel