{"id":16200012,"url":"https://github.com/rinigus/mapbox-gl-fonts","last_synced_at":"2025-10-25T17:15:05.564Z","repository":{"id":74209833,"uuid":"113671169","full_name":"rinigus/mapbox-gl-fonts","owner":"rinigus","description":"Conversion of fonts into Mapbox GL supported glyphs","archived":false,"fork":false,"pushed_at":"2022-07-24T15:30:35.000Z","size":18,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T11:36:38.024Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/rinigus.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":"2017-12-09T13:24:44.000Z","updated_at":"2024-08-24T12:36:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"91352bf2-2151-43bc-9ba7-d0a7487e9510","html_url":"https://github.com/rinigus/mapbox-gl-fonts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rinigus/mapbox-gl-fonts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinigus%2Fmapbox-gl-fonts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinigus%2Fmapbox-gl-fonts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinigus%2Fmapbox-gl-fonts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinigus%2Fmapbox-gl-fonts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rinigus","download_url":"https://codeload.github.com/rinigus/mapbox-gl-fonts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinigus%2Fmapbox-gl-fonts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280988274,"owners_count":26425487,"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-10-25T02:00:06.499Z","response_time":81,"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":[],"created_at":"2024-10-10T09:29:03.421Z","updated_at":"2025-10-25T17:15:05.539Z","avatar_url":"https://github.com/rinigus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scripts for importing fonts into SQLite database with Mapbox GL-supported glyphs\n\nIn this project, the scripts are developed for importing fonts (TTF and OTF) into SQLite database in Mapbox GL-supported format.\nThe scripts are developed targeting support for [OSM Scout Server](https://github.com/rinigus/osmscout-server). The fonts are imported\nas a group of fonts that is merged into a single font stack. The resulting merged font stack gets the glyphs from the provided list\nof fonts by picking the glyph from the first font that has it. As a result, the fonts that are distributed as a set of fonts can be merged\nand easily used in Mapbox GL styles.\n\n\n## Requirements\n\nAs a requirement, font import requires\n[build_pbf_glyphs](https://github.com/stadiamaps/build_pbf_glyphs). Install it\nwith\n\n```\ncargo install build_pbf_glyphs\n```\n\n\n## Prepare PBF reader\n\nThe fonts are imported using `fontimport.py` script. The script requires Protocol Buffers Python representation of the PBFs used by Mapbox GL to\ndefine the font stacks. To generate Python code, run\n\n```\n(cd proto \u0026\u0026 protoc --python_out=. glyphs.proto)\n```\n\n## Getting fonts and import\n\nAt present, scripts are written for fetching Open Sans and Noto fonts. To fetch and unpack fonts, run `getfonts.sh`.\nTo import these fonts into SQLite, run `import.sh`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frinigus%2Fmapbox-gl-fonts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frinigus%2Fmapbox-gl-fonts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frinigus%2Fmapbox-gl-fonts/lists"}