lights FAQ Forum github.com/luapower/harfbuzz
harfbuzz

Unsupported
syscall
bnet
lfs
lanes
mmap WIP
stdio WIP
vararg
nanojpeg
blur WIP
openvg WIP
hpdf
svg_parser WIP
ffi_reflect
struct
pmurhash
murmurhash3
md4
crc32
oo
ringbuffer
dlist
obj_parser
glut
fbclient WIP
portaudio
libssh2 WIP
minizip
terra
llvm
utf8 WIP
ucdn
libunibreak
harfbuzz
fribidi
chipmunk
libvlc WIP
libvorbis WIP
libpng WIP

harfbuzz

complex text shaping


local harfbuzz = require'harfbuzz'

A ffi binding of HarfBuzz, a library for OpenType complex text shaping.

work in progress...

There's a quick demo to try out in the meantime (for which you'll need the freetype package).

TODO: integrate more from this: https://github.com/lxnt/ex-sdl-freetype-harfbuzz/blob/master/ex-sdl-freetype-harfbuzz.c

Building

After upgrading harfbuzz, building it requires removing the included .hh files and recreating them with Ragel. Ragel builds with luapower's toolchain just fine:

Get it:

wget https://www.colm.net/files/ragel/ragel-6.9.tar.gz
tar xfv ragel-6.9.tar.gz
cd ragel-6.9

Linux / OSX:

./configure
make
sudo make install

Windows:

sh configure
make
cp ragel/ragel.exe <mingw-install-dir>/bin

Last updated: 2 years ago | Edit on GitHub

Pkg type:Lua+ffi
Version: r2-29-g7c2e741
Last commit:
License: MIT
Import ver: 0.9.25
Requires: freetype  luajit  ucdn 
Required by: none

Top