harfbuzz

harfbuzz bindings

Stats

StarsIssuesVersionUpdatedCreatedSize
harfbuzz
231.0.26 years ago6 years agoMinified + gzip package size for harfbuzz in KB

Readme

node-harfbuzz

node.js harfbuzz bindings

Example

var fs = require('fs');
var ft = require('freetype2');

var face = {};
ft.New_Memory_Face(fs.readFileSync(process.argv[2]), 0, face);
face = face.face;

var ptSize = 70*64;
var device_hdpi = 72;
var device_vdpi = 72;
ft.Set_Char_Size(face, 0, ptSize, device_hdpi, device_vdpi );

var hb = require('harfbuzz');
var glyphs = hb(face.handle, "This is test text to shape");
console.log(glyphs);

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.