Skip to content

v1.8.4 — Font Vote: Current Site card now reads the real live site

Choose a tag to compare

@ArsNovaSingers ArsNovaSingers released this 10 Aug 21:06
· 5 commits to main since this release

The Current Site baseline was a hardcoded Georgia/Arial approximation that could not track the live site. New includes/current-site.php fetches arsnovasingers.org server-side, parses the real heading and body font-family from its CSS, walks its stylesheets for @font-face blocks, resolves the woff2 URLs absolute and keeps only the faces for the families actually in use — cached 12 hours, source URL editable at Settings -> Font Vote Fonts, exposed as public GET /font-vote/current-site with ?refresh=1. The page re-declares those faces and patches the baseline on every state load, so the card and the large preview render in genuine Mirador-Bold and Hergon Grotesk (possible because the live site serves its fonts with access-control-allow-origin: *). Heading weight is taken from the faces that exist rather than a hardcoded 700, avoiding a synthesised bold over an already-bold face. The option id stays baseline, so existing team votes are untouched; a failed read says it is showing a stand-in rather than pretending.