You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expose resolved font faces for downstream modules (og-image, pdfmake, ...) #902
Today there's no public API for this. The only way is to reverse-engineer internal build machinery: hook fonts:public-asset-context to recover the original source URL, then parse the generated nuxt-fonts-global.css template by hand to find the resolved @font-face declarations. Each module ends up re-implementing the same CSS-parsing/font-lookup logic against an undocumented internal contract that can break on any refactor.
Would it be possible to expose a small official utility/hook that returns the resolved font faces (family, weight, style, format, source) directly, so downstream modules don't each need to build this themselves?
Reacted by Daniel Roe, Harlan Wilton and Behon Baker
Activity
maximepvrt commentedon Sep 2, 2026
linked to BayBreezy/nuxt-pdfmake#159