From 8c4c35311bd5e2de2930864e8b0ebbc16bebf08b Mon Sep 17 00:00:00 2001 From: hellofromTonya Date: Thu, 31 Aug 2023 21:49:20 +0000 Subject: [PATCH] Introduce font-face styles generator and printer. Introducing Font Face, a server-side `@font-face` styles generator and printer. tl;dr: * Introduces Font Face. * Deprecates `_wp_theme_json_webfonts_handler()`. **Introduce Font Face** From an array of fonts (i.e. each font-family and its font variations to be processed), it: 1. Validates each `font-face` declaration, i.e. the CSS property and value pairing. If validation fails, processing stops with no font-face styles printed. 3. Generates the `@font-face` CSS for each font-family. 4. Prints the CSS within a ` and open a