pixelfont
Version, currently 1.1.11 version
- 1.1.1latestApr 3, 2024
github.com/SleepingInsomniac/pixelfont
Lazy bitmap fonts made from text files
0 stars
1 dependent
License: MIT
Installation
# Add this to your shard.yml
dependencies:
pixelfont:
github: SleepingInsomniac/pixelfont
version: ~> 1.1.1Then run:
shards installshard.yml
- Crystal
>= 1.11.2- License
- MIT
- Author
- Alex Clink
- Target
pixelfontfrom src/cli.cr
Dependencies
Runtime Dependencies
- dot_display*github: sleepinginsomniac/dot_display
README
Pixelfont
████
█ █ █ ███ ██ █
█ █ █ █ ███ █ █ █ ███ █ ██ █████
████ ███ █ █ █ █ █ █ █ █ ██ █ █
█ █ █ █████ █ ███ █ █ █ █ █
█ █ █ █ █ █ █ █ █ █ █ █
█ ███ █ █ ████ ███ █ ███ █ █ ██
⡖⠒⡄⠄⡀⠀⡀⢀⡀⢠⠀⡔⠢⠀⣀⠀⡀⡀⢀⣆
⡏⠉⠀⡇⡨⠪⡀⢗⣊⠸⡀⡏⠁⠸⣀⠇⡏⢸⠀⢇
When you want a font, but are kinda lazy.
Installation
-
Add the dependency to your
shard.yml:dependencies: pixelfont: github: sleepinginsomniac/pixelfont -
Run
shards install
Usage
require "pixelfont"
font = Pixelfont::Font.new
font.draw("Hello, World!") do |px, py, on|
my_screen[px, py] = RGB.new(0, 0, 0) if on
end
Cli
shards build --release
# Write text as an array of characters
./bin/pixelfont -i fonts/pixel-5x7.txt display "Hello, World!"
# Write text as braille dots
./bin/pixelfont -i fonts/pixel-5x7.txt dots "Hello, World!"
# Export as binary
./bin/pixelfont -i fonts/pixel-5x7.txt export -o pixel-5x7.pxf -f binary
# Get the bytes for embeding
./bin/pixelfont -i fonts/pixel-5x7.txt embed
Contributing
- Fork it (https://github.com/sleepinginsomniac/pixelfont/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Alex Clink - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.1.1- Tagged
- Apr 3, 2024
- Commit
cb62293136a0- Crystal
>= 1.11.2- Indexed
- yes
Dependents
Repository
github.com/SleepingInsomniac/pixelfont
Metadata
- Created
- Aug 19, 2026
- Updated
- Sep 27, 2026
- Synced
- Sep 27, 2026
- Versions
- 1