harfbuzzjs
Providing HarfBuzz shaping
library for client/server side JavaScript projects.
See the demo here.
Building
- Install clang 8 and git
./build.sh
Download
Download the pack from releases tab
of the project, or just download the demo page (the
demo source is in gh-pages branch).
Usage and testing
Browser
npx pad.js
- Open
http://127.0.0.1/examples/hbjs.example.html
or http://127.0.0.1/examples/nohbjs.html
Node.js
(cd examples && node hbjs.example.node.js)
Even the fact we provide a tiny wrapper around the main functionalities of
harfbuzz, it's easy to use other parts see example/nohbjs.js
to see how,
but you may need a custom build.
Can be added with npm i harfbuzzjs
or yarn add harfbuzzjs
, see the examples for
how to use it.
Need more of the library?
File a bug and mention your usecase.
Use the library in a bigger emscripten project?
See harfbuzz port inside emscripten
and emscripten-ports/HarfBuzz, basically all you need is to use
-s USE_HARFBUZZ=1
in your build.