question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Distribute bitmap fonts in PIL format with the debian package

See original GitHub issue

See @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:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
WasabiFancommented, Sep 29, 2016

I guess this may wait for after we release 0.7.0?

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.

0reactions
ddemidovcommented, Oct 13, 2016

Resolved by #225

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found