{"id":21202993,"url":"https://github.com/fcambus/bdf2sfd","last_synced_at":"2025-07-10T06:33:41.874Z","repository":{"id":54517620,"uuid":"225587916","full_name":"fcambus/bdf2sfd","owner":"fcambus","description":"BDF to SFD converter, allowing to vectorize bitmap fonts","archived":false,"fork":false,"pushed_at":"2024-02-14T19:50:18.000Z","size":154,"stargazers_count":35,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-02-14T20:51:15.473Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fcambus.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","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":"AUTHORS","dei":null}},"created_at":"2019-12-03T10:03:40.000Z","updated_at":"2024-02-12T08:30:18.000Z","dependencies_parsed_at":"2024-02-14T20:46:27.898Z","dependency_job_id":"722afab0-56e0-4bad-9b2f-a0ca58e07d6e","html_url":"https://github.com/fcambus/bdf2sfd","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcambus%2Fbdf2sfd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcambus%2Fbdf2sfd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcambus%2Fbdf2sfd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcambus%2Fbdf2sfd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fcambus","download_url":"https://codeload.github.com/fcambus/bdf2sfd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225623947,"owners_count":17498328,"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-11-20T20:19:59.267Z","updated_at":"2025-07-10T06:33:41.867Z","avatar_url":"https://github.com/fcambus.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bdf2sfd\n\nbdf2sfd is a [BDF][1] to [SFD][2] converter, allowing to vectorize bitmap\nfonts. It works by converting each pixel of a glyph to a polygon, which\nproduces large and unoptimized SFD files that should be post-processed\nusing [FontForge][3].\n\nThere are several reasons why it might be desirable to convert bitmap\nfonts to OpenType or TrueType versions. This allow for example to use them\nas Web fonts, or simply to keep using them in some terminal emulators,\nsince Pango 1.44 dropped support for bitmap fonts.\n\nIt was originally created to generate OpenType versions of [Spleen][4], and\nis released in the hope it can be useful to convert other fonts as well.\nPlease be aware that it works best on fonts proportional to 8x16. Other\nsizes will work but the aspect ratio will not be preserved. There is\ncurrently little interest in addressing the issue.\n\nbdf2sfd is written with security in mind and is running sandboxed on OpenBSD\n(using pledge). Experimental seccomp support is available for selected\narchitectures and can be enabled by setting the `ENABLE_SECCOMP` variable\nto `1` when invoking CMake. It has also been extensively fuzzed using AFL\nand Honggfuzz.\n\n## Dependencies\n\nbdf2sfd uses the `CMake` build system and does not requires any external\ndependencies.\n\n\tmkdir build\n\tcd build\n\tcmake ..\n\tmake\n\nbdf2sfd has been successfully built and tested on OpenBSD, NetBSD, FreeBSD,\nand Linux with both Clang and GCC.\n\n## Packages\n\nbdf2sfd packages are available for:\n\n- [OpenBSD][5]\n- [NetBSD][6]\n- [FreeBSD][7]\n- [Void Linux][8]\n- [Debian][9]\n- [Ubuntu][10]\n- [Nix][11]\n- [Gentoo][12]\n- [Guix][13]\n\n## Usage\n\n\tbdf2sfd [-hv] [-f name] [-p name] font.bdf\n\nIf file is a single dash (`-'), bdf2sfd reads from the standard input.\n\nThe options are as follows:\n\n\t-f name\tSpecify font name.\n\t-p name\tSpecify PostScript font name.\n\t-h\tDisplay usage.\n\t-v\tDisplay version.\n\nbdf2sfd outputs SFD data to **stdout**.\n\n### Post-processing\n\nThe SFD files created by bdf2sfd should be post-processed with FontForge\nin order to remove overlap and simplify shapes.\n\nThis can be done as follow:\n\n```\nfontforge -lang ff -c 'Open(\"spleen.sfd\"); SelectAll(); RemoveOverlap(); Simplify(-1, 1); Save(\"spleen.sfd\")'\n```\n\n### Producing OTF and TTF fonts\n\nAfter post-processing, OpenType and/or TrueType fonts can be produced as follow:\n\nFor OTF fonts:\n\n```\nfontforge -lang ff -c 'Open(\"spleen.sfd\"); Generate(\"spleen.otf\")'\n```\n\nFor TTF fonts:\n\n```\nfontforge -lang ff -c 'Open(\"spleen.sfd\"); Generate(\"spleen.ttf\")'\n```\n\n## License\n\nbdf2sfd is released under the BSD 2-Clause license. See `LICENSE` file for\ndetails.\n\n## Author\n\nbdf2sfd is developed by Frederic Cambus.\n\n- Site: https://www.cambus.net\n\n## Resources\n\nGitHub: https://github.com/fcambus/bdf2sfd\n\n[1]: https://en.wikipedia.org/wiki/Glyph_Bitmap_Distribution_Format\n[2]: https://fontforge.org/docs/techref/sfdformat.html\n[3]: https://fontforge.org\n[4]: https://github.com/fcambus/spleen\n[5]: https://openports.pl/path/converters/bdf2sfd\n[6]: https://pkgsrc.se/converters/bdf2sfd\n[7]: https://www.freshports.org/x11-fonts/bdf2sfd\n[8]: https://github.com/void-linux/void-packages/tree/master/srcpkgs/bdf2sfd\n[9]: https://packages.debian.org/search?keywords=bdf2sfd\n[10]: https://packages.ubuntu.com/bdf2sfd\n[11]: https://github.com/NixOS/nixpkgs/tree/master/pkgs/by-name/bd/bdf2sfd\n[12]: https://packages.gentoo.org/packages/media-fonts/bdf2sfd\n[13]: https://packages.guix.gnu.org/packages/bdf2sfd\n\n## Packaging status\n\n[![Packaging status](https://repology.org/badge/vertical-allrepos/bdf2sfd.svg)](https://repology.org/project/bdf2sfd/versions)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcambus%2Fbdf2sfd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffcambus%2Fbdf2sfd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcambus%2Fbdf2sfd/lists"}