wp_print_font_faces


wp_print_font_faces ( $fonts = array() )

Parameters:
  • (array[][]) fonts { Optional. The font-families and their font faces. Default empty array. @type array ...$0 { An indexed or associative (keyed by font-family) array of font variations for this font-family. Each font face has the following structure. @type array ...$0 { The font face properties. @type string $font-family The font-family property. @type string|string[] $src The URL(s) to each resource containing the font data. @type string $font-style Optional. The font-style property. Default 'normal'. @type string $font-weight Optional. The font-weight property. Default '400'. @type string $font-display Optional. The font-display property. Default 'fallback'. @type string $ascent-override Optional. The ascent-override property. @type string $descent-override Optional. The descent-override property. @type string $font-stretch Optional. The font-stretch property. @type string $font-variant Optional. The font-variant property. @type string $font-feature-settings Optional. The font-feature-settings property. @type string $font-variation-settings Optional. The font-variation-settings property. @type string $line-gap-override Optional. The line-gap-override property. @type string $size-adjust Optional. The size-adjust property. @type string $unicode-range Optional. The unicode-range property. } } }
Defined at:

Description

Generates and prints font-face styles for given fonts or theme.json fonts.

Related Functions

wp_print_styles, wp_prime_option_caches, wp_print_footer_scripts, _wp_before_delete_font_face, wp_print_revision_templates

Top Google Results

User discussions

wpseek mobile