Distribute bitmap fonts in PIL format with the debian package
See original GitHub issueSee @dlech’s comments in ev3dev/ev3dev#751 on how to actually do this.
Besides packaging the fonts with the library, I would also provide a helper function for their easy consumption. Something like font('<name>_<size>')
so that the following is possible:
import ev3dev.ev3 as ev3
screen = ev3.Screen()
screen.draw.text('Hello', font=ev3.font('<name>_<size>'))
@WasabiFan, I guess this may wait for after we release 0.7.0?
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
ImageFont Module - Pillow (PIL Fork) 9.3.0 documentation
PIL uses its own font file format to store bitmap fonts, limited to 256 characters. You can use pilfont.py from pillow-scripts to convert...
Read more >Is it possible to include ttf-mscorefonts-installer package into ...
Ignore the part in the stack overflow link about converting ttf fonts. I just included it to give a hint on how PIL...
Read more >monobit - PyPI
Tools for working with monochrome bitmap fonts. The monobit tools let you modify bitmap fonts and convert between several formats.
Read more >Debian -- Software Packages in "bullseye", Subsection fonts
Software Packages in "bullseye", Subsection fonts ; aglfn (1.7+git20191031.4036a9c-2): Adobe Glyph List For New Fonts ; bdf2sfd (1.1.5-1): BDF to SFD converter ...
Read more >PIL Issue, OSError: cannot open resource - Stack Overflow
I fixed the problem by using default font. font = ImageFont.load_default(). If you just need to put some text (font style is not...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You have six hours 😉
But more seriously, yes I think it should wait. That doesn’t mean it can’t be released soon, though; we could release 0.7.1 tomorrow if you’d like. I support the idea, I just want to make sure that we get this release finished at some point.
Resolved by #225