enso-org / msdfgen-wasm

Multi-channel signed distance field generator, adapted for WASM

Home Page:https://luna-lang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Msdfgen Library for Wasm32

This repository contains a copy of msdfgen library (commit 86acea) with its freetype dependency, adapted to webassebly. The changes includes CMakeScripts, exported C API, and other required adjustements.

See this instruction how to use exported functions in JavaScript.

Emscripten libraries loads their environment asynchronously. You must not use any exported function before this initialization is complete. This library provides two js functions for querying initialization state (defined here: isInitialized and addInitializationCb.

Build

You need to have emscripten SDK and cmake installed:

mkdir build
cd build
emconfigure cmake .. # -DCMAKE_BUILD_TYPE=RELEASE
emmake make

The final output is msdfgen_wasm.js file located in build/msdfgen/

About

Multi-channel signed distance field generator, adapted for WASM

https://luna-lang.org


Languages

Language:C 66.7%Language:HTML 21.2%Language:C++ 5.3%Language:Shell 2.8%Language:Makefile 1.3%Language:Python 1.1%Language:M4 0.6%Language:CMake 0.3%Language:DIGITAL Command Language 0.3%Language:JavaScript 0.2%Language:Meson 0.1%Language:Perl 0.1%Language:Awk 0.0%Language:CSS 0.0%Language:Roff 0.0%Language:Batchfile 0.0%