Module:ItemBox: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Add variants() for stable per-item texture variety (replaces nth-child); add font-table regen recipe to header (with help from vergir-bot LLM) |
m comments update |
||
| Line 4: | Line 4: | ||
-- ============================================================================ | -- ============================================================================ | ||
-- Retail Demo (bold) glyph advance widths, in em of the font size. | -- Retail Demo (bold) glyph advance widths, in em of the font size. | ||
-- unitsPerEm = 1000. Measured from | -- unitsPerEm = 1000. Measured from /images/d/d5/Retaildemo-bold.woff2 | ||
-- Table can be regenerated with fontforge / fonttools | |||
-- | |||
-- ============================================================================ | -- ============================================================================ | ||
local WIDTH = { | local WIDTH = { | ||
| Line 120: | Line 104: | ||
end | end | ||
-- | -- User for stable per-item texture variety | ||
local function hash(s) | local function hash(s) | ||
local h = 5381 | local h = 5381 | ||