Skip to content
Corex

FontCollection

Corex\Assets\FontCollection · class · Core layer

A curated CoreX font collection for the WordPress 7 Font Library (spec 062, Priority 2): registers the framework’s self-hosted brand typefaces (Space Grotesk, JetBrains Mono, IBM Plex Sans Arabic — all OFL, safe to redistribute) so an editor can install them from Appearance → Fonts. This is optional, editor-side tooling; the production path for a client’s brand fonts is still source-controlled fonts registered in the client theme’s theme.json (see the branding guide). definition() is pure; register() is the WP boundary.

The font-collection definition in WordPress Font Library shape. Pure (URL in → array out) so it is unit-tested. Each family points its fontFace src at the framework’s self-hosted woff2.