{"id":16178362,"url":"https://github.com/munrocket/3d-sdf-font","last_synced_at":"2025-03-19T01:30:48.053Z","repository":{"id":95974309,"uuid":"419469209","full_name":"munrocket/3d-sdf-font","owner":"munrocket","description":"📎 Arciform font type sdf generator in glsl","archived":false,"fork":false,"pushed_at":"2021-10-30T19:05:37.000Z","size":38,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T01:35:10.132Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/munrocket.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":"2021-10-20T19:46:53.000Z","updated_at":"2024-03-11T13:40:12.000Z","dependencies_parsed_at":"2023-07-23T14:31:12.651Z","dependency_job_id":null,"html_url":"https://github.com/munrocket/3d-sdf-font","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/munrocket%2F3d-sdf-font","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munrocket%2F3d-sdf-font/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munrocket%2F3d-sdf-font/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munrocket%2F3d-sdf-font/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/munrocket","download_url":"https://codeload.github.com/munrocket/3d-sdf-font/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244336111,"owners_count":20436770,"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-10-10T05:13:36.060Z","updated_at":"2025-03-19T01:30:47.773Z","avatar_url":"https://github.com/munrocket.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 3d-sdf-font\n\nArciform font type sdf generator in glsl\n\n![arciform](https://i.imgur.com/8wdqkK3.jpeg)\n\n### Usage\nCreating sdf for text `Hello world!` from console\n```sh\nnpm start Hello\\\\nworld!\n```\nIn your user script\n```js\nimport { sdf } from '3d-sdf-font';\nconsole.log(sdf('Hello\\nworld!'))\n```\nIn browser console\n```js\n\\\\ copypaste kerning.js json and assign it to variable kerning\nlet kerning = { 'a': ... };\n\\\\ copypaste index.js source code without import, export and console.log\nlet template = (sdf, scale, tx, ty, tz) =\u003e { ... }\n\\\\ print result\nconsole.log(sdf('How vexingly\\nquick daft\\nzebras jump'));\n```\n\n### How to add new symbol in font\nCreate new SDF according to 2pt font letter with origin at left bottom corner in Inskape.\nAdd new symbol in kerning alphabet in `gen.py` and run `npm run gen` or\n```sh\npip3 install pillow\ncd kerning\npython3 gen.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmunrocket%2F3d-sdf-font","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmunrocket%2F3d-sdf-font","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmunrocket%2F3d-sdf-font/lists"}