lights FAQ Forum   github.com/luapower/freetype
freetype

2D Graphics
path2d
affine2d
box2d
clipper
cairo
freetype
openvg
svg_parser
hpdf

freetype

freetype font engine


local freetype = require'freetype'

A ffi binding of FreeType 2.

screenshot

screenshot

API

Look at the bottom of the source file for method names for each object type. Use the demo and test files for usage examples.

Use the FreeType docs for knowledge about fonts and rasterization.

Binary

The included freetype binary is a stripped build of freetype. In particular, font formats other than ttf and cff are not supported. Also, the patent-encumbered LCD filtering is enabled, so it may well be illegal to use this binary in your country. If unsure, compile your own.


Last updated: 21 months ago | Edit on GitHub

Pkg type:Lua+ffi
Version: r2-30-g0e8b33e
Last commit:
License: FTL/BSD
Import ver: 2.5.0.1
Requires: luajit 
Required by: cairo  harfbuzz  cplayer 

Top