▣
module · drop-in viewer
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.
by·posted 2mo ago
What it does
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.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.