{"id":49837188,"url":"https://github.com/harfbuzz/harfbuzz-world.cc","last_synced_at":"2026-05-14T01:41:49.453Z","repository":{"id":351547605,"uuid":"1211301178","full_name":"harfbuzz/harfbuzz-world.cc","owner":"harfbuzz","description":"https://harfbuzz-world.cc/ content","archived":false,"fork":false,"pushed_at":"2026-04-15T13:41:41.000Z","size":952,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-15T14:30:10.647Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/harfbuzz.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-15T08:56:47.000Z","updated_at":"2026-04-15T13:41:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/harfbuzz/harfbuzz-world.cc","commit_stats":null,"previous_names":["harfbuzz/harfbuzz-world.cc"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/harfbuzz/harfbuzz-world.cc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harfbuzz%2Fharfbuzz-world.cc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harfbuzz%2Fharfbuzz-world.cc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harfbuzz%2Fharfbuzz-world.cc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harfbuzz%2Fharfbuzz-world.cc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harfbuzz","download_url":"https://codeload.github.com/harfbuzz/harfbuzz-world.cc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harfbuzz%2Fharfbuzz-world.cc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33006878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"ssl_error","status_checked_at":"2026-05-13T13:14:51.610Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-05-14T01:41:48.633Z","updated_at":"2026-05-14T01:41:49.448Z","avatar_url":"https://github.com/harfbuzz.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# harfbuzz-world.cc\n\nSource for **\u003chttps://harfbuzz-world.cc\u003e** — a live, in-browser\nplayground for [HarfBuzz](https://github.com/harfbuzz/harfbuzz),\nplus a working example of using `src/harfbuzz-world.cc` (the\nsingle-file HarfBuzz amalgamation) in a real project.\n\n## Tabs\n\n- **embed** — how to drop `harfbuzz-world.cc` into your own\n  C/C++ build, with configuration flags explained.\n- **shape** — text → glyph stream as JSON, with an SVG\n  preview of the laid-out result.\n- **subset** — subsets the current font for the current\n  text via `hb-subset`; downloadable, with a live preview\n  rendered using the subset itself.\n- **raster** — pixel-perfect software rendering through\n  `hb-raster`, blitted straight into `\u003ccanvas\u003e`.\n- **vector** — SVG and PDF output via `hb-vector`, both\n  downloadable; SVG also rendered inline as a preview.\n- **gpu** — slug-based GPU rendering, embedded from\n  [hb-gpu-demo](https://harfbuzz.github.io/hb-gpu-demo/)\n  and driven by the same shared controls.\n\nThe shared controls (text, size, font picker, variable-axis\nsliders) feed every tab.  Five presets (Latin / Arabic /\nDevanagari / Chinese / Emoji) load matching script + font\ncombos with one click.\n\n## Build\n\nPrerequisites:\n\n- [Emscripten](https://emscripten.org/) on `$PATH`\n  (`source emsdk/emsdk_env.sh`).\n- A HarfBuzz source tree, either at `$HB_SRC`, in a sibling\n  `harfbuzz/` directory, or `$HOME/harfbuzz`.\n\n```sh\nbash scripts/build.sh\n```\n\nProduces `hb-world.js` + `hb-world.wasm` at the repo root.\nThen:\n\n```sh\npython3 -m http.server -d .\n```\n\n…and visit \u003chttp://localhost:8000/\u003e.\n\n## Deploy\n\nGitHub Actions (`.github/workflows/pages.yml`) builds the\nwasm bundle on every push to `main` and publishes via\n`actions/deploy-pages` to \u003chttps://harfbuzz-world.cc\u003e.\n\n## Repository layout\n\n```\nsrc/\n  bindings.cc          Emscripten C exports (web_render_*, web_subset, ...)\n  config.h             HB_TINY base + HB_HAS_RASTER/VECTOR/SUBSET\n  config-override.h    things HB_TINY disables that we need back\n\nscripts/\n  build.sh             em++ invocation\nfonts/                 bundled OFL font subsets\njs/app.js              SPA shell + per-demo render code\ncss/site.css           styles\nindex.html             single page, all tabs\n.github/workflows/     CI\n```\n\n## License\n\nThe site code is under the same MIT license as HarfBuzz.\nBundled fonts are OFL ([Noto](https://notofonts.github.io/)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharfbuzz%2Fharfbuzz-world.cc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharfbuzz%2Fharfbuzz-world.cc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharfbuzz%2Fharfbuzz-world.cc/lists"}