{"id":16963589,"url":"https://github.com/coderobe/fontanyl","last_synced_at":"2025-03-21T16:26:31.809Z","repository":{"id":94540064,"uuid":"160789484","full_name":"coderobe/fontanyl","owner":"coderobe","description":"bitmap font parser lib","archived":false,"fork":false,"pushed_at":"2018-12-16T22:33:38.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T11:44:27.212Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coderobe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-07T07:43:32.000Z","updated_at":"2019-04-14T10:41:55.000Z","dependencies_parsed_at":"2023-03-12T11:48:13.060Z","dependency_job_id":null,"html_url":"https://github.com/coderobe/fontanyl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderobe%2Ffontanyl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderobe%2Ffontanyl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderobe%2Ffontanyl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderobe%2Ffontanyl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderobe","download_url":"https://codeload.github.com/coderobe/fontanyl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244827825,"owners_count":20517008,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T23:25:24.967Z","updated_at":"2025-03-21T16:26:31.787Z","avatar_url":"https://github.com/coderobe.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fontanyl\n\nbitmap font parser\n\n## Details\n\n### Currently supported formats\n\n- BDF\n\n### Known missing features\n\n- Vertical alignment (i.e. overhang) (rendering)\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n```yaml\ndependencies:\n  fontanyl:\n    github: fliegermarzipan/fontanyl\n```\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"fontanyl\"\n\n\ndef render(bitmap)\n  # The generated bitmap is an array of lines-of-text\n  bitmap.each do |line|\n    # Each text line contains several Y-scanlines\n    # as an Array(Bool) bitmap\n    line.each { |e| puts e.map { |i| i ? '#' : ' ' }.join }\n  end\nend\n\n# Load BDF font from file\nfont = Fontanyl::BDF.new(\"font.bdf\")\n\n# Generate bitmap of string using loaded font\n# and pass it to our render() function that maps the bits\n# to ascii-art text\nrender font.get_bitmap(\"Hello, World\")\n```\n\n## Development\n\nTODO: Write development instructions here\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/fliegermarzipan/fontanyl/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Robin Broda](https://github.com/coderobe) - creator and maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderobe%2Ffontanyl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderobe%2Ffontanyl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderobe%2Ffontanyl/lists"}