teqo-backup/src/app/(frontend)/fonts.ts
Francisco Solla 681f3bb566 feat(S13): cards personalizados da campanha no site público
Home ganha a seção Faça parte com os três modelos e a rota /cards
concentra catálogo + compositor client-side (dialog desktop, bottom
drawer mobile): nome no slot medido do mestre com Brexter 700 e foto
full-bleed sob o overlay oficial (pan/zoom clampados), download PNG
sem conta e sem enviar nome/foto. Núcleo puro em src/lib/card* com
unit tests; e2e cobre home→deep-link, nome→PNG real, erro fail-closed,
foto e drawer mobile. Sem migration/PII.
2026-09-12 03:25:43 -03:00

18 lines
679 B
TypeScript

import localFont from 'next/font/local'
/**
* S13 — Brexter 700, the display face of the official card masters. Web use is
* licensed for the campaign (regular DEMO face is deliberately excluded). The
* font is only consumed by the card canvas, so the family string travels to the
* client and `ensureCardFont` awaits `document.fonts.load` before measuring.
*/
export const brexterBold = localFont({
src: './fonts/Brexter-Bold.ttf',
weight: '700',
style: 'normal',
display: 'swap',
variable: '--font-brexter',
// Canvas-only face: preloading it on every page would be waste (the studio
// loads it on demand via `document.fonts.load`).
preload: false,
})