diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-24 14:04:48 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-24 14:04:48 -0400 |
| commit | 468bb6dbf6d24eafb0c5d6bd65b397af6846eed1 (patch) | |
| tree | d17c3287eff8ef23c3e07e9078d402cce5ac7520 /modules/user-constants.el | |
| parent | 17fef49ac105da61466df52f6f29ba47d13faefb (diff) | |
| download | dotemacs-468bb6dbf6d24eafb0c5d6bd65b397af6846eed1.tar.gz dotemacs-468bb6dbf6d24eafb0c5d6bd65b397af6846eed1.zip | |
fix(theme-studio): render nerd-icon glyphs in previews instead of tofu
The legend, dashboard, and package previews drew nerd-icon glyphs as empty boxes. The font-family never reached them: PREVIEW_FONT was spliced into inline style="..." attributes with a double-quoted family name, so the inner quote closed the attribute early and the font was silently dropped. Dropping the quotes fixes it. A no-space family name needs none.
I embedded the glyph font directly: Symbols Nerd Font Mono, encoded with fontTools (woff2_compress output is rejected by headed Chrome and Firefox), inlined as a data: URI under the unique family name ThemeStudioNerd so it resolves to the embed rather than a system-installed copy of the same name. The page is self-contained and renders on any clone.
I added a #fonttest gate that parses previewLines output and asserts the resolved font-family plus glyph coverage, plus a make font target that re-encodes the woff2 with fontTools.
Diffstat (limited to 'modules/user-constants.el')
0 files changed, 0 insertions, 0 deletions
