Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Node.js bindings of otfcc? #54

Open
chengluyu opened this issue Dec 12, 2017 · 1 comment
Open

Node.js bindings of otfcc? #54

chengluyu opened this issue Dec 12, 2017 · 1 comment

Comments

@chengluyu
Copy link

chengluyu commented Dec 12, 2017

Any idea to make otfcc a Node.js binding? For example:

const otfcc = require('otfcc');
const data = otfcc.dumpFromFile('font.ttf');
// do something
otfcc.buildFromJSON(data, { optimizeLevel: 3, ignoreHints: true });

Currently I'm using child_process to manually invoke otfcc, which is really a pain.

@be5invis
Copy link
Contributor

I am not very familiar with creating C++ modules... though there is a DLL target in the current code. Windows build requires VS2017 and Clang -- but you can use prebuilt DLLs.

PRs are welcome (please push to the poly branch).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants