Fonts
Fonts API Functions
Font Face Output wp_print_font_faces() Generates and prints @font-face styles for given fonts or theme.json fonts. wp_print_font_faces( array $fonts = array()...
Fonts API Hooks
Filters font_dir Filters the fonts directory data. apply_filters( 'font_dir', array $font_dir ): array Since: 6.5.0 Parameters: Name Type Description $font_dir...
WP_Font_Face_Resolver
Extracts font definitions from theme.json and style variations. Since: 6.4.0 Source: wp-includes/fonts/class-wp-font-face-resolver.php Access: Private (internal core usage) Description This class...
WP_Font_Face
Generates and prints @font-face CSS styles for given fonts. Since: 6.4.0 Source: wp-includes/fonts/class-wp-font-face.php Description This class handles the generation of...
WP_Font_Library
Singleton registry for font collections. Since: 6.5.0 Source: wp-includes/fonts/class-wp-font-library.php Description The Font Library manages the registration and retrieval of font...
WP_Font_Utils
Utility functions for working with fonts. Since: 6.5.0 Source: wp-includes/fonts/class-wp-font-utils.php Access: Private (internal core usage) Description Provides utility functions for...
Fonts API
Framework for managing web fonts, font faces, and font collections in WordPress. Since: 6.4.0 (core), 6.5.0 (Font Library/Collections) Source: wp-includes/fonts.php,...
WP_Font_Collection
Represents a collection of fonts that can be installed from the Font Library. Since: 6.5.0 Source: wp-includes/fonts/class-wp-font-collection.php Description A font...