micropython / micropython/micropython

framebuf: Support drawing text at different sizes

Open
#7,384 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

extmod
Dominant language
C
Stars
22.1k
Forks
9k
Avg merge
6d 4h
Merged PRs (30d)
16

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing PR #6263 and the FrameBuffer text-rendering behavior described here; compare its arbitrary scaling approach with current MicroPython conventions. Done means the maintainers decide whether the existing patch is accepted as-is or specify the changes needed for inclusion in official releases.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, python
Domain
computer-graphics, embedded-iot
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.