PREPROD
ReaderAuthor

Skarn PDF

TenantFont.weight

The weight of an uploaded font — regular, medium, or bold.

1 min read · 1 depth levelstratum-pdf · vdevMatches production
Everyday

TenantFont.weight is the stroke weight of an uploaded font, one of regular, medium, or bold. The upload endpoint enforces those three values with a Zod enum, while the database column itself is a plain String. Weight pairs with family to pick a specific file, letting a tenant upload a full set — regular, medium, and bold — under one family name. It is part of the unique (tenantId, family, weight) key and is embedded in the storage path fonts/{tenantId}/{family}/{weight}.ttf.

Was this helpful?