Render the classic name font as thin Arial instead of bold

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Evan Pelle
2026-06-14 01:11:43 +00:00
parent 0727c2cf4e
commit aa6d9e1bc1
@@ -19,8 +19,9 @@ import type { BMChar, ParsedAtlas } from "./Types";
// Match the MSDF atlas em/base so all downstream sizing stays identical.
const EM = 48;
const BASE = 36;
// Bold to match the weight of the overpass-bold name style.
const FONT = `bold ${EM}px Arial, "Liberation Sans", sans-serif`;
// Thin Arial. Arial ships no dedicated thin face, so browsers without one fall
// back to regular weight (still much lighter than the MSDF bold).
const FONT = `100 ${EM}px Arial, "Liberation Sans", sans-serif`;
const ATLAS_W = 1024;
const PAD = 2; // transparent gutter between packed glyphs