lights FAQ Forum

Text Layouting
tr WIP


Unicode text shaping and rendering

local tr = require'tr'

Text shaping and rendering engine for combined multi-language Unicode text using exclusively portable technologies for pixel-perfect consistent output across platforms. Supports complex text shaping based on harfbuzz and fribidi and glyph caching and rasterization based on freetype.


  • subpixel positioning
  • OMG color emoticons!
  • rich text markup lanugage
  • word wrapping
  • cursor positioning information for editing
  • control over OpenType features
  • font database for font selection
  • OpenType-assisted auto-hinter enabled in freetype

Note: this is a support lib for ui but can be used standalone.

Last updated: 27 days ago | Edit on GitHub

Pkg type:Lua
Version: dev-28-g0c7245e
Last commit:
License: PD
Requires: none
Required by: none