examples: short headers

This commit is contained in:
4DBug committed 2026-11-01 01:49:44 -05:00
1 parent 2591255694
commit e23adf2a2d
13 files changed
+16 -36

No files matched your search

+2 -4
View File
@@ -1,7 +1,5 @@
-- examples/font.luau: loads a TrueType font, prints its metrics, renders a line of text into a PNG and bakes the font
-- into a BMFont (descriptor + page images). Run from the repository root: luau examples/font.luau
-- It needs a .ttf: from the repo it uses the docs test font (generate it first with python3 -I tools/fixtures.py docs),
-- elsewhere set TTF_BYTES below to the bytes of any font (the luau CLI cannot read files). docs/guide/font.md explains.
-- examples/font.luau: load a TrueType font, render text into a PNG, bake a BMFont (docs/guide/font.md).
-- Needs a .ttf: in the repo, the docs test font (python3 -I tools/fixtures.py docs); elsewhere set TTF_BYTES below.
local F = require("@rosetta")
local TTF_BYTES: buffer? = nil