fontanyl
Version, currently 1.0.03 versions
- 1.1.1latestJul 30, 2023
- 1.1.0not indexedJul 30, 2023
- 1.0.0not indexedJul 30, 2023
github.com/farkasmate/fontanyl
bitmap font parser lib
0 stars
1 dependent
License: AGPLv3
Nothing has been indexed for 1.0.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
fontanyl:
github: farkasmate/fontanyl
version: ~> 1.0.0Then run:
shards installshard.yml
No shard.yml has been indexed for 1.0.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
fontanyl
bitmap font parser
Details
Currently supported formats
- BDF
Known missing features
- Vertical alignment (i.e. overhang) (rendering)
Installation
- Add the dependency to your
shard.yml:
dependencies:
fontanyl:
github: fliegermarzipan/fontanyl
- Run
shards install
Usage
require "fontanyl"
def render(bitmap)
# The generated bitmap is an array of lines-of-text
bitmap.each do |line|
# Each text line contains several Y-scanlines
# as an Array(Bool) bitmap
line.each { |e| puts e.map { |i| i ? '#' : ' ' }.join }
end
end
# Load BDF font from file
font = Fontanyl::BDF.new("font.bdf")
# Generate bitmap of string using loaded font
# and pass it to our render() function that maps the bits
# to ascii-art text
render font.get_bitmap("Hello, World")
Development
TODO: Write development instructions here
Contributing
- Fork it (https://github.com/fliegermarzipan/fontanyl/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
- Robin Broda - 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.0.0- Tagged
- Jul 30, 2023
- Commit
25dd7e5015f8- Indexed
- not yet
Dependents
Repository
github.com/farkasmate/fontanyl
Metadata
- Created
- Aug 19, 2026
- Updated
- Nov 12, 2026
- Synced
- Nov 12, 2026
- Versions
- 3