Skip to content

framebuf: Support drawing text at different sizes #7384

Description

@jonathanhogg

I'm increasingly making little widgets with MicroPython that use small OLED displays to present information to the user. The text support in FrameBuffer() is great, but it's limited to the built-in 8-pixel-square font. Being able to display text at different sizes makes a massive usability difference.

I've already written a patch that does simple arbitrary scaling of the built-in font and raised PR #6263. I've been using this in production devices for a year now, but supporting a bunch of patches is becoming a bore and I hate not being able to use the official releases so I'd like to get this PR mainlined as-is or some feedback on what I could change to get it accepted.

Thought that perhaps opening an issue might raise the visibility of this.

Activity

  1. changed the title [-]Add framebuf text scaling support (PR ready)[/-] [+]framebuf: Support drawing text at different sizes[/+] on Jul 12, 2021
  2. CoreProduction commented on Jun 14, 2022

    @CoreProduction

    We'd love this too - it's a big deal for accessibility. Members of our forum have expressed interest in text scaling too! (thread)

  3. added
    extmodRelates to extmod/ directory in source
    on Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    extmodRelates to extmod/ directory in source

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions