{"id":22863862,"url":"https://github.com/nilsding/bdf_parser","last_synced_at":"2025-03-31T09:28:40.677Z","repository":{"id":67628478,"uuid":"211506646","full_name":"nilsding/bdf_parser","owner":"nilsding","description":"A quick and dirty parser for the Glyph Bitmap Distribution Format (BDF)","archived":false,"fork":false,"pushed_at":"2019-09-28T13:46:20.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T13:51:33.883Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/nilsding.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":"2019-09-28T13:42:40.000Z","updated_at":"2022-12-22T17:21:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"838a8112-0b75-418d-83e3-995361bc4767","html_url":"https://github.com/nilsding/bdf_parser","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/nilsding%2Fbdf_parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilsding%2Fbdf_parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilsding%2Fbdf_parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilsding%2Fbdf_parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nilsding","download_url":"https://codeload.github.com/nilsding/bdf_parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246446139,"owners_count":20778744,"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-12-13T11:17:42.886Z","updated_at":"2025-03-31T09:28:40.669Z","avatar_url":"https://github.com/nilsding.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bdf_parser\n\nA quick and dirty parser for the Glyph Bitmap Distribution Format (BDF).\n\n## Usage\n\n```ruby\nrequire_relative \"./bdf_parser\"\nrequire \"pp\"\n\nfont = nil\nFile.open(File.expand_path(\"~/unifont.bdf\"), \"r\") do |file|\n  font = BDF::Parser.new(file).parse\nend\n\np font.name\n# \"-gnu-Unifont-Medium-R-Normal-Sans-16-160-75-75-c-80-iso10646-1\"\n\npp font.properties\n# {:copyright=\u003e\n#   \"Copyright (C) 1998-2019 Roman Czyborra, Paul Hardy,  Qianqian Fang, Andrew Miller, Johnnie Weaver, David Corbett, et al.  License GPLv2+: GNU GPL version 2 or later \u003chttp://gnu.org/licenses/gpl.html\u003e  with the GNU Font Embedding Exception.\",\n#  :font_version=\u003e\"12.1.03\",\n#  :font_type=\u003e\"Bitmap\",\n#  :foundry=\u003e\"GNU\",\n#  :family_name=\u003e\"Unifont\",\n#  :weight_name=\u003e\"Medium\",\n#  :slant=\u003e\"R\",\n#  :setwidth_name=\u003e\"Normal\",\n#  :add_style_name=\u003e\"Sans Serif\",\n#  :pixel_size=\u003e16,\n#  :point_size=\u003e160,\n#  :resolution_x=\u003e75,\n#  :resolution_y=\u003e75,\n#  :spacing=\u003e\"C\",\n#  :average_width=\u003e80,\n#  :charset_registry=\u003e\"ISO10646\",\n#  :charset_encoding=\u003e\"1\",\n#  :underline_position=\u003e-2,\n#  :underline_thickness=\u003e1,\n#  :cap_height=\u003e10,\n#  :x_height=\u003e8,\n#  :font_ascent=\u003e14,\n#  :font_descent=\u003e2,\n#  :default_char=\u003e65533}\n\npp font.chars[\"U+0045\"]\n# #\u003cstruct BDF::Char\n#  encoding=69,\n#  swidth=#\u003cstruct BDF::Offset x=500, y=0\u003e,\n#  dwidth=#\u003cstruct BDF::Offset x=8, y=0\u003e,\n#  bbx=#\u003cstruct BDF::BoundingBox width=8, height=16, x=0, y=-2\u003e,\n#  bitmap=[0, 0, 0, 0, 126, 64, 64, 64, 124, 64, 64, 64, 64, 126, 0, 0]\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilsding%2Fbdf_parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnilsding%2Fbdf_parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilsding%2Fbdf_parser/lists"}