This project aims to fully implement the FIGfont spec in Elixir.
Based on the work of Patrick Gillespie for Javascript Figlet.
iex> Figlet.text("Rad", font: "priv/figlet.js/Alpha.flf")
_____ _____ _____
/\ \ /\ \ /\ \
/::\ \ /::\ \ /::\ \
/::::\ \ /::::\ \ /::::\ \
/::::::\ \ /::::::\ \ /::::::\ \
/:::/\:::\ \ /:::/\:::\ \ /:::/\:::\ \
/:::/__\:::\ \ /:::/__\:::\ \ /:::/ \:::\ \
/::::\ \:::\ \ /::::\ \:::\ \ /:::/ \:::\ \
/::::::\ \:::\ \ /::::::\ \:::\ \ /:::/ / \:::\ \
/:::/\:::\ \:::\____\ /:::/\:::\ \:::\ \ /:::/ / \:::\ ___\
/:::/ \:::\ \:::| |/:::/ \:::\ \:::\____\/:::/____/ \:::| |
\::/ |::::\ /:::|____|\::/ \:::\ /:::/ /\:::\ \ /:::|____|
\/____|:::::\/:::/ / \/____/ \:::\/:::/ / \:::\ \ /:::/ /
|:::::::::/ / \::::::/ / \:::\ \ /:::/ /
|::|\::::/ / \::::/ / \:::\ /:::/ /
|::| \::/____/ /:::/ / \:::\ /:::/ /
|::| ~| /:::/ / \:::\/:::/ /
|::| | /:::/ / \::::::/ /
\::| | /:::/ / \::::/ /
\:| | \::/ / \::/____/
\|___| \/____/ ~~
:ok
This is currently a work in progress: the collection of fonts has not been organized or de-duplicated, there isn't yet support for screen widths or the compression of output, unicode characters, and a handful of other things.
If available in Hex, the package can be installed
by adding figlet
to your list of dependencies in mix.exs
:
def deps do
[
{:figlet, "~> 0.1.0"}
]
end
Image Attribution: "Braille F" by Joel Wisneski from the Noun Project