This pure Elixir module provides facilities for working with OpenType and TrueType fonts. To date it is able to parse them, perform glyph substitution and positioning, and handle shaping for European and cursive scripts (specifically scripts like Arabic, Syriac and N'ko).
Output for supported scripts is roughly beta quality -- additional work on mark positioning in particular is required.
Shapers for Indic, Thai, Korean and Uniscribe-compatible scripts require further development.
The package can be installed by adding opentype
to your list of dependencies in mix.exs
:
def deps do
[{:opentype, "~> 0.5.0"}]
end