-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fontconvert upgrades #373
Comments
Can you run The problem is that the GFXfont struct has no way to represent a noncontiguous range of code points, and takes the reasonable default of only encoding the ASCII printable characters for the built-in fonts, but you aren't constrained to that range as a user of the library. You can generate and use your own PS: What odd dots? I have been working with |
This can be changed, for examples, like this: https://github.com/virxkane/nucleo-f446re-st7735spi-shield/blob/main/Inc/gfxfont.h |
Thankx – useful info, I’ve setup a spare computer with Linux Mint, so I’ll see what I can get working with a modified fontconvert.
I need LARGE (80pt) fonts for clocks, but only 0-9 and colon, to minimise progmem usage – if possible.
From: Aleksey Chernov ***@***.***
Sent: Friday, 26 November 2021 01:16
To: adafruit/Adafruit-GFX-Library ***@***.***>
Cc: ftlpilot ***@***.***>; Author ***@***.***>
Subject: Re: [adafruit/Adafruit-GFX-Library] fontconvert upgrades (Issue #373)
The problem is that the GFXfont struct has no way to represent a noncontiguous range of code points
This can be changed, for examples, like this: https://github.com/virxkane/nucleo-f446re-st7735spi-shield/blob/main/Inc/gfxfont.h
But, unfortunatly, this is out of roadmap <https://github.com/adafruit/Adafruit-GFX-Library#roadmap> .
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#373 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AB53UK2XNQTOKOJY25Z42X3UNZAJ7ANCNFSM5IQPJCJA> .
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub> . <https://github.com/notifications/beacon/AB53UK5TXGOEE75OTGR6SV3UNZAJ7A5CNFSM5IQPJCJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHJPCXEI.gif>
…--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
|
Happy hacking. If you're more handy with Python than C, I've ported fontconvert to Python. It also includes a https://github.com/BillyDonahue/Adafruit-GFX-Library/tree/fontconvert_py |
@ftlpilot I was also looking for a way to include the degree character ( |
Can I put in a request to include the degree character 0xB0 (176 dec) glyph when fontconvert converts a TTF file.
Also, is it possible to fix the main algorithm, so odd dots don't sometimes appear at the edges of large fonts.
The text was updated successfully, but these errors were encountered: