Skip to content

PCF: Fix font metrics of "5x8.pcf" #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 8, 2021
Merged

Conversation

jepler
Copy link
Contributor

@jepler jepler commented Mar 8, 2021

This closes #38 -- 5x8.pcf.zip now has metrics (5, 8, 0, -1), matching the bdf version of the font.

This PR also adds some const() declarations and fixes pylint problems in tests/.

Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this out on:

Adafruit CircuitPython 6.2.0-beta.3-36-g103632f44 on 2021-03-07; Adafruit PyPortal with samd51j20

And confirmed it does resolve the issue with multi-line labels that use the 5x8.pcf font file linked in #38

Looks good to me, thanks for the fix.

@ladyada ladyada merged commit 1f602d9 into adafruit:master Mar 8, 2021
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Certain pcf font gets wrong metrics
3 participants