Skip to content

Ability to stretch content (text) vertically #1111

@appfamily

Description

@appfamily

Scenario: Creating a bunch of LED-signs for logistics company, need to display 4 - 5 chars visible from 10 - 30 meters away.

Hardware: Pimoroni 128x64 px display with Interstate 75W. Should be large enough.

Problem: When displaying text that utilizes the full width of the display there are wasted pixels above and below the text. I would like some way to stretch the text vertically. I realize that stretching too much would deform it and make it illegible.

I'm new to the Interstate 75W, familiar with programming on a hobby level. I'm sure there are workarounds but my Googling didn't give a clear answer. Grateful for any pointers so I don't waste time going down the wrong route, i.e. if custom bitmap fonts are the way to go I'll do it but maybe there is an easier workaround :)

graphics.set_font("sans")
graphics.set_thickness(5)
graphics.text("STO2", -3, 30, scale=1.7)

Image

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