PangoCairo on the Web

Compile Cairo/Pango/PangoCairo based applications from C to WebAssembly?src

Try it online (1.5 ~ 3.5 MB data transfer):

Cairo: https://vitovan.com/pango-cairo-wasm/hello-cairo.html

PangoCairo: The pthreads used by Pango requires Web Workers require extra HTTP HEADERS, and the workarounds would break other pages on my website. So, please download the files and serve them locally.

Preview:

Hello Cairo

Hello Pango

Usage

Setup emcc & pkg-config

with Docker

from Source

This build.sh only compiles on Fedora, if you can't get one, please modify it before execution.

Wait for 20 minutes or more. If all went well, execute:

Compile C Code

Cairo with no pthread

PangoCairo with pthread

Start the debug server

open the following links in your browser: