{"id":27936217,"url":"https://github.com/enso-org/msdfgen-wasm","last_synced_at":"2025-05-07T06:56:55.309Z","repository":{"id":47473355,"uuid":"219967553","full_name":"enso-org/msdfgen-wasm","owner":"enso-org","description":"Multi-channel signed distance field generator, adapted for WASM","archived":false,"fork":false,"pushed_at":"2022-10-31T07:48:00.000Z","size":6137,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-05-07T06:56:45.421Z","etag":null,"topics":["font","sdf","wasm"],"latest_commit_sha":null,"homepage":"https://luna-lang.org","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enso-org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-06T10:09:52.000Z","updated_at":"2024-07-31T14:53:42.000Z","dependencies_parsed_at":"2023-01-20T11:31:57.274Z","dependency_job_id":null,"html_url":"https://github.com/enso-org/msdfgen-wasm","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enso-org%2Fmsdfgen-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enso-org%2Fmsdfgen-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enso-org%2Fmsdfgen-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enso-org%2Fmsdfgen-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enso-org","download_url":"https://codeload.github.com/enso-org/msdfgen-wasm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252831297,"owners_count":21810783,"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":["font","sdf","wasm"],"created_at":"2025-05-07T06:56:54.844Z","updated_at":"2025-05-07T06:56:55.303Z","avatar_url":"https://github.com/enso-org.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Msdfgen Library for Wasm32\n\nThis repository contains a copy of \n[msdfgen library](https://github.com/Chlumsky/msdfgen) (commit \n[86acea](https://github.com/Chlumsky/msdfgen/tree/86acea7835269a9817f772eea6d7465cb080cdfe)) \nwith its freetype dependency, adapted to webassebly. The changes \nincludes CMakeScripts, \n[exported C API](https://github.com/luna/msdfgen-wasm/blob/master/msdfgen/wasm/msdfgen_c.h),\nand other required adjustements.\n\nSee [this instruction](https://emscripten.org/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html)\nhow to use exported functions in JavaScript.\n\nEmscripten libraries loads their environment asynchronously. You must not use\nany exported function before this initialization is complete. This library\nprovides two js functions for querying initialization state (defined\n[here](https://github.com/luna/msdfgen-wasm/blob/master/msdfgen/wasm/pre.js):\n`isInitialized` and `addInitializationCb`.\n\n# Build\n\nYou need to have emscripten SDK and cmake installed:\n\n```bash\nmkdir build\ncd build\nemconfigure cmake .. # -DCMAKE_BUILD_TYPE=RELEASE\nemmake make\n```\n\nThe final output is `msdfgen_wasm.js` file located in `build/msdfgen/`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenso-org%2Fmsdfgen-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenso-org%2Fmsdfgen-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenso-org%2Fmsdfgen-wasm/lists"}