{"id":14235644,"url":"https://github.com/7sDream/fontfor","last_synced_at":"2025-08-11T00:32:10.642Z","repository":{"id":43116437,"uuid":"231636935","full_name":"7sDream/fontfor","owner":"7sDream","description":"Find fonts which can show a specified character and preview them in terminal or browser.","archived":false,"fork":false,"pushed_at":"2024-06-09T05:26:16.000Z","size":380,"stargazers_count":160,"open_issues_count":2,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-12T01:44:38.353Z","etag":null,"topics":["character","cli","font","utilities"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/7sDream.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"COPYING","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":"2020-01-03T17:46:21.000Z","updated_at":"2024-08-11T01:31:22.000Z","dependencies_parsed_at":"2024-06-08T06:25:34.072Z","dependency_job_id":"10cfd33f-69de-4ac7-af4c-00a174d9d331","html_url":"https://github.com/7sDream/fontfor","commit_stats":{"total_commits":102,"total_committers":4,"mean_commits":25.5,"dds":0.2450980392156863,"last_synced_commit":"d63694d835438579bac0889b8572c7867095d0c4"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7sDream%2Ffontfor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7sDream%2Ffontfor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7sDream%2Ffontfor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7sDream%2Ffontfor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7sDream","download_url":"https://codeload.github.com/7sDream/fontfor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":216214754,"owners_count":15992197,"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":["character","cli","font","utilities"],"created_at":"2024-08-20T21:02:12.158Z","updated_at":"2025-08-11T00:32:10.620Z","avatar_url":"https://github.com/7sDream.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# FontFor\n\n[![license-badge]][license-file] [![version-badge]][crates-io-page] [![ci-badge]][github-actions-page]\n\nFind fonts which can show a specified character and preview them in browser.\n\nThis is port from my early python script called [which_fonts_support][which_fonts_support-github], but with some improvements:\n\n- 🛡️ Write in Rust, without unsafe. Safety\n- 🚀️ Mmap to load font file. Fast\n- 🚀️ Only parse font table we need, not all bytes of font file. Faster\n- 🖥 Support preview in terminal and browser. Friendly\n\n## Install or Update\n\n```bash\ncargo install -f fontfor\n```\n\nOnly guaranteed to compile with the latest stable Rust version.\n\nOr download binary from release page.\n\n## Usage\n\n### Basic\n\n```bash\n$ fontfor א\nFont(s) support the character \"א\"(U+05D0, 1488, 0xD7 0x90):\nArial                       with 4 styles\nArial Hebrew                with 3 styles\nArial Hebrew Desk Interface with 3 styles\nArial Hebrew Scholar        with 3 styles\nArial Unicode MS            with 1 style\nCorsiva Hebrew              with 2 styles\nCourier New                 with 4 styles\nDejaVu Sans                 with 8 styles\nFreeMono                    with 4 styles\nFreeSans                    with 4 styles\nFreeSerif                   with 4 styles\nHanaMinA                    with 1 style\nLastResort                  with 1 style\nLucida Grande               with 2 styles\nMicrosoft Sans Serif        with 1 style\nNew Peninim MT              with 4 styles\nRaanana                     with 2 styles\nTW-Kai                      with 1 style\nTW-Sung                     with 1 style\nTahoma                      with 2 styles\nTimes New Roman             with 4 styles\n```\n\n### Character Input Format\n\nYou can use the following formats for the character:\n\n- Character: `א`\n- Unicode scalar value\n  - `U+XXXXXX`: `U+5d0`, `U+05d0`, `U+0005d0`\n  - Direct input\n    - Dec format: `1488`\n    - Oct format: `0o2720`\n    - Binary format: `0b010111010000`\n- UTF8 bytes: `0xd790`\n\n### Show All Font Styles\n\nadd `-v` flag to show all font style.\n\nWe don't show [screenshot picture][verbose-mode-screenshot] here because it's a bit long.\n\nadd more `-v`, or `-vv` to show font file and face index.\n\n### Preview in Browser\n\nAdd `-p` flag to enable browser preview:\n\n![browser-preview-screenshot]\n\n### Preview in Shell\n\nAdd `-t` flag to enter tui mode for preview in shell:\n\n![tui-mono-mode]\n\nAnd you can change render mode to ASCII(10 Level):\n\n![tui-ascii-10-mode]\n\nASCII(70 Level):\n\n![tui-ascii-70-mode]\n\nOr [`moon-render`][moon-render-github] mode:\n\n![tui-moon-mode]\n\n## LICENSE\n\nGPLv3 or later.\n\nSee [COPYING][COPYING-file].\n\n[license-badge]: https://img.shields.io/crates/l/fontfor?style=flat-square\n[license-file]: https://github.com/7sDream/fontfor/blob/master/COPYING\n[version-badge]: https://img.shields.io/crates/v/fontfor?style=flat-square\n[crates-io-page]: https://crates.io/crates/fontfor\n[ci-badge]: https://github.com/7sDream/fontfor/workflows/CI/badge.svg\n[github-actions-page]: https://github.com/7sDream/fontfor/actions\n[which_fonts_support-github]: https://github.com/7sDream/which_fonts_support\n[verbose-mode-screenshot]: https://rikka.7sdre.am/files/22ea7500-525b-47ba-9c4e-6ef963999983.png\n[browser-preview-screenshot]: https://rikka.7sdre.am/files/8f27f97b-a9b5-4fac-b922-594d188f648c.png\n[tui-ascii-10-mode]: https://rikka.7sdre.am/files/34340b12-f554-4a08-9f2a-3c97ba1c2bd4.png\n[tui-ascii-70-mode]: https://rikka.7sdre.am/files/bab9bc92-88fd-4be0-b9dc-e138723bb125.png\n[tui-mono-mode]: https://rikka.7sdre.am/files/ee09bac8-ad1c-434d-8ec1-2b71411aac71.png\n[tui-moon-mode]: https://rikka.7sdre.am/files/d8b690c7-ac0a-42e5-9b91-7c7e134100e6.png\n[moon-render-github]: https://github.com/7sDream/moon-render\n[COPYING-file]: https://github.com/7sDream/fontfor/blob/master/COPYING\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7sDream%2Ffontfor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7sDream%2Ffontfor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7sDream%2Ffontfor/lists"}