@centralHarlem wrote:
[original question] I would like to scroll a message exactly once, so that it scrolls off the left of the screen and does not reappear. With graphics, this is relatively easy because I know how many pixels wide the thing is that I drew. But with text, no such luck. How can I determine the number of pixels to scroll a given message in a given font? (Or any alternative method to scroll the buffer exactly once).
[edit] I figured it out — scrollphathd.write_string returns the width of the string in pixels.
Posts: 1
Participants: 1