Installation¶
Four ways to add glyph to your Love2D project.
Option 1 — Feather (recommended)¶
Feather is a curated package installer for LÖVE libraries. It verifies every install with a SHA-256 checksum and records exact versions in a lockfile.
Feather places the files inside your project and adds an entry to feather.lock.json so the
install is reproducible. To restore dependencies on a fresh clone:
Option 2 — Release zip¶
Download the latest zip from the GitHub Releases page.
- Unzip the archive.
- Copy the two items into your project root (or a
lib/subfolder):
- Add the location to
package.pathif you placed them in a subfolder:
If you copied them straight to the project root no path change is needed.
Option 3 — Clone the repository¶
Clone and copy the two items that make up glyph:
Then copy glyph.lua and the glyph/ folder into your project:
If you prefer to keep glyph as a submodule instead:
Then point package.path at the submodule:
Option 4 — LuaRocks¶
Install the rock directly from the terminal:
LuaRocks places glyph on the global Lua path, so no package.path adjustment is needed.
Just require it:
Note
Love2D uses its own bundled Lua rather than the system one, so the LuaRocks tree
is not on package.path by default. Add the snippet below to the top of main.lua
to bridge them.
local rock = io.popen("luarocks path --lr-path 2>/dev/null"):read("*l")
if rock then package.path = rock .. ";" .. package.path end
Verify the install¶
Paste this into main.lua and run with love . — a white label should appear: