You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using a conservative limit of 80 characters per page (plus or minus some for special conditions), but this isn't great in all situations, due to variable character widths and line wrapping.
Is there a better way?
The text was updated successfully, but these errors were encountered:
I am quite sure this code says: "If the text does not fit in the window, lower the font size to FONT_KEY_GOTHIC_18_BOLD". I know, because I can replace FONT_KEY_GOTHIC_18_BOLD to change what font is used whenever there's too much text in an un-scrollable window. The PebbleJS default is actually FONT_KEY_GOTHIC_18, I changed to FONT_KEY_GOTHIC_18_BOLD for this app to make the size switches less jarring.
Instead of changing the body font, would it be possible to set a variable that can be read from SimplyJS? Unfortunately, I don't know C...
I thought of a way I could do this with Javascript. Track the width of each word, by giving each letter a "score" based on its width (or just 1 in initial iteration). If the width of each word is greater than a predefined limit, increment the line. Once you have too many lines (I think the limit is 6?), go to the next page.
It's totally doable, but writing the code is going to make my brain hurt, so don't expect it soon...
I'm currently using a conservative limit of 80 characters per page (plus or minus some for special conditions), but this isn't great in all situations, due to variable character widths and line wrapping.
Is there a better way?
The text was updated successfully, but these errors were encountered: