Skip to content

Multiple spaces are stripped when using text API #210

@jjcohen

Description

@jjcohen

Hi I recently set up a Papirus and Raspberry Pi 3 (not used for anything else, fresh install etc), both of which I bought a while back.
Loving the display it's great however it seems that multiple spaces are swallowed by the PapirusTextPos. For instance "hello word" would be printed as "hello world".

  • I did the manual install as the automatic install did not work for me.
  • This is the version of the git repo I have locally : c6da9c1
  • The following is the script I ran:
from papirus import PapirusTextPos

text = PapirusTextPos()

text.AddText("hello                            world", 10, 10, Id="Start" ) 
  • Here is what is displayed on the physical device:
    20191023_084528

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions