{"id":31177734,"url":"https://github.com/benders/micropython-pixelfonts","last_synced_at":"2026-05-18T04:36:54.829Z","repository":{"id":314002272,"uuid":"1053757689","full_name":"benders/micropython-pixelfonts","owner":"benders","description":"Very small bitmap fonts for use with MicroPython","archived":false,"fork":false,"pushed_at":"2025-09-09T22:38:55.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-10T02:16:34.620Z","etag":null,"topics":["micropython"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benders.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-09T22:21:36.000Z","updated_at":"2025-09-09T22:46:33.000Z","dependencies_parsed_at":"2025-09-10T02:17:18.149Z","dependency_job_id":"9342f151-1fbc-4a69-b0e1-557fb0bbf86a","html_url":"https://github.com/benders/micropython-pixelfonts","commit_stats":null,"previous_names":["benders/micropython-pixelfonts"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/benders/micropython-pixelfonts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benders%2Fmicropython-pixelfonts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benders%2Fmicropython-pixelfonts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benders%2Fmicropython-pixelfonts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benders%2Fmicropython-pixelfonts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benders","download_url":"https://codeload.github.com/benders/micropython-pixelfonts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benders%2Fmicropython-pixelfonts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275951151,"owners_count":25558395,"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","status":"online","status_checked_at":"2025-09-19T02:00:09.700Z","response_time":108,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["micropython"],"created_at":"2025-09-19T14:06:11.962Z","updated_at":"2025-09-19T14:07:13.185Z","avatar_url":"https://github.com/benders.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pixelfont\n\n## Usage\n\n```python\nfrom pixelfonts import Font3x5, Font4x7\n\n# Create a font renderer with your display dimensions and pixel function\nfont = Font3x5(display_width=16, display_height=8, pixel_func=set_pixel)\n\n# Draw text at a specific position\nfont.text(\"123\", x_offset=0, y_offset=0, color=(255, 255, 255))\n\n# Draw a single character\nfont.draw_char(\"5\", x_offset=10, y_offset=2, color=(255, 0, 0))\n```\n\n### Integration with Display Libraries\n\npixelfont works with any display library that provides a pixel-setting function. The pixel function should accept x and y coordinates followed by any additional parameters (like color).\n\n```python\n# Example with a generic display library\ndef set_my_pixel(x, y, color):\n    my_display.pixel(x, y, color)\n\nfont = Font4x7(128, 64, set_my_pixel)\nfont.text(\"0123\", 10, 10, (255, 255, 255))\n```\n\n## Available Fonts\n\n- **Font3x5**: A compact 3x5 pixel font, for very small displays\n- **Font4x7**: A more readable 4x7 pixel font\n\n## Creating Custom Fonts\n\nYou can create your own custom fonts by subclassing `BaseFont`:\n\n```python\nfrom pixelfont import BaseFont\n\nclass MyCustomFont(BaseFont):\n    WIDTH = 5\n    HEIGHT = 8\n    FONT = {\n        \"A\": [\n            \"  #  \",\n            \" # # \",\n            \"#   #\",\n            \"#####\",\n            \"#   #\",\n            \"#   #\",\n            \"#   #\",\n            \"     \"\n        ],\n        # Add more characters...\n    }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenders%2Fmicropython-pixelfonts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenders%2Fmicropython-pixelfonts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenders%2Fmicropython-pixelfonts/lists"}