Log inGet started
World

EMBERLINE

Branchmain
Branchesmain
Commite3b1d97d67

README.md

emberline.ui.glyphs

EMBERLINE's display typeface: a 7-row pixel alphabet (A-Z, 0-9 and punctuation) emitted as a single SVG path, stroked for a hard one-pixel outline and filled with a gradient, with optional cast shadow, slab weight and a blurred halo.

local G = require("emberline.ui.glyphs")
G.node("FIGHT!", { px = 15, gradient = { "#fff3c4", "#ff9a2e" }, outline = "#0a0a0f", glow = "#ff6a00" })
G.measure(text, opts)   -- logical width, height
G.svg(text, opts)       -- the raw document

Sizes are in FONT PIXELS (px); the module reports the resulting logical size so a caller never measures type by hand.