lordmauve / lordmauve/pgzero

Request SurfacePainter.textbox function to support system fonts

Open
#210 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ptext
Dominant language
Python
Stars
611
Forks
211
PR merge metrics
No merged PRs in 30d

Description

Hi, I found SurfacePainter.textbox(screen.draw.textbox) function in screen.py doesn't support to use sysfontname.
I think modify drawbox function in ptext.py and getfont funtion in loaders.py could add support for sysfont. But it is difficult for me to pull a stable and compatible request to add this feature. Please consider adding that this function supports the use of system fonts. Thanks.

Contributor guide

No contributing guide indexed for this repository

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 reading SurfacePainter.textbox in screen.py, then inspect the drawbox function in ptext.py and getfont in loaders.py. Trace how screen.draw.textbox selects fonts and determine the compatibility expectations for sysfontname. Done means textbox accepts and uses system fonts without disrupting existing font behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.